]> arthur.barton.de Git - netdata.git/commitdiff
properly detect the lack of high resolution date on busybox systems
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 26 Sep 2016 22:03:42 +0000 (01:03 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 26 Sep 2016 22:03:42 +0000 (01:03 +0300)
plugins.d/loopsleepms.sh.inc

index 00f894b48dc666c151c25e382e511137d108621f..6de93043c93a5e6823bbfc2aced0fcb69ec0224d 100644 (file)
@@ -13,6 +13,7 @@ fi
 now_ms=
 LOOPSLEEPMS_HIGHRES=1
 test "$($LOOPSLEEP_DATE +%N)" = "%N" && LOOPSLEEPMS_HIGHRES=0
+test -z "$($LOOPSLEEP_DATE +%N)"     && LOOPSLEEPMS_HIGHRES=0
 current_time_ms_from_date() {
     if [ $LOOPSLEEPMS_HIGHRES -eq 0 ]
     then