@cryptotaxi247 / netdata-1 / commits / df59fce57

prevent sending microseconds on BEGIN the first time

Costa Tsaousis (ktsaou) committed Jan 21, 2016 at 22:03 UTC df59fce57c770902d5c5f80713ed001dc1d69164
1 file changed +1 -1
plugins.d/charts.d.plugin
+1 -1
@@ -496,8 +496,8 @@ global_update() {
496 # the first call should not give a duration
497 # so that netdata calibrates to current time
498 charts_run_counter[$chart]=$(( charts_run_counter[$chart] + 1 ))
499 - test ${charts_run_counter[$chart]} -eq 1 && dt=
499 dt=$(( dt * 1000 ))
500 + test ${charts_run_counter[$chart]} -eq 1 && dt=
501
502 exec_start_ms=$now_ms
503 $chart$charts_update $dt