diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-09-12 23:47:25 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-09-12 23:47:25 +0300 |
commit | 4bd921279f0e2b9fe30de07529af87787bf5cd65 (patch) | |
tree | 47b435db08213390366a87b63388ba79dca52dd6 /charts.d | |
parent | 76e257a0d03d34c507c51e46604eca2f0a54ee36 (diff) |
charts.d.plugin and tc-qos-helper.sh optimization to avoid frequent forks due to date and sleep
Diffstat (limited to 'charts.d')
-rwxr-xr-x | charts.d/example.chart.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/charts.d/example.chart.sh b/charts.d/example.chart.sh index 1f020dee27..93f1cf4fdd 100755 --- a/charts.d/example.chart.sh +++ b/charts.d/example.chart.sh @@ -48,8 +48,8 @@ example_get() { else example_count=$((1 + (RANDOM * 5 / 32767) )) - [ $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)) + [ $example_last -gt 16383 -a $example_value4 -gt 16383 ] && example_value4=$((example_value4 - 16383)) + [ $example_last -le 16383 -a $example_value4 -lt 16383 ] && example_value4=$((example_value4 + 16383)) fi example_last=$example_value4 |