@cryptotaxi247 / netdata-1 / commits / d5cc68336

fix integer expression expected error when a chart.d module fails

Costa Tsaousis (ktsaou) committed Jun 27, 2016 at 15:03 UTC d5cc6833685f1570eac484396cbc033307197d5e
1 file changed +2 -2
plugins.d/charts.d.plugin
+2 -2
@@ -567,7 +567,7 @@ global_update() {
567 exec_start_ms=$now_ms
568 $chart$charts_update $dt
569 ret=$?
570 -
570 +
571 # return the current time in ms in $now_ms
572 current_time_ms; exec_end_ms=$now_ms
573
@@ -582,7 +582,7 @@ global_update() {
582 else
583 charts_serial_failures[$chart]=$(( charts_serial_failures[$chart] + 1 ))
584
585 - if [ charts_serial_failures[$chart] -gt 10 ]
585 + if [ ${charts_serial_failures[$chart]} -gt 10 ]
586 then
587 echo >&2 "$PROGRAM_NAME: chart '$chart' update() function reported failure ${charts_serial_failures[$chart]} times. Disabling it."
588 else