diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-07-14 22:16:26 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-07-14 22:16:26 +0300 |
commit | ac06e6bd65dc24eee50d07cc096553f42bd98904 (patch) | |
tree | d92d39b8bb5720476d8f5939349ac6af6191e648 /charts.d/example.chart.sh | |
parent | 3824a699715d85e0adf61570a4569d09922c7f5c (diff) |
updated shebang and fixed incorrect variables
Diffstat (limited to 'charts.d/example.chart.sh')
-rwxr-xr-x | charts.d/example.chart.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/charts.d/example.chart.sh b/charts.d/example.chart.sh index df6c3a3eee..1f020dee27 100755 --- a/charts.d/example.chart.sh +++ b/charts.d/example.chart.sh @@ -1,4 +1,4 @@ -#!/bin/bash +# no need for shebang - this file is loaded from charts.d.plugin # if this chart is called X.chart.sh, then all functions and global variables # must start with X_ @@ -48,8 +48,8 @@ example_get() { else example_count=$((1 + (RANDOM * 5 / 32767) )) - [ $example_last -gt 16383 -a $value4 -gt 16383 ] && example_value4=$((value4 - 16383)) - [ $example_last -le 16383 -a $value4 -lt 16383 ] && example_value4=$((value4 + 16383)) + [ $example_last -gt 16383 -a $example_value4 -gt 16383 ] && example_value4=$((value4 - 16383)) + [ $example_last -le 16383 -a $example_value4 -lt 16383 ] && example_value4=$((value4 + 16383)) fi example_last=$example_value4 |