charts.d: loopsleepms: fix now_ms (#9510)
Ilya Mashchenko committed
Jul 10, 2020 at 00:38 UTC
7d0f638bcef891c35c21bad249dbb44709e9e23a
1 file changed
+1
-1
collectors/charts.d.plugin/loopsleepms.sh.inc
+1
-1
@@ -18,7 +18,7 @@ current_time_ms_from_date() {
18
if [ $LOOPSLEEPMS_HIGHRES -eq 0 ]; then
19
now_ms="$($LOOPSLEEP_DATE +'%s')000"
20
else
21
- now_ms="$(($($LOOPSLEEP_DATE +'%s * 1000 + %-N / 1000000')))"
21
+ now_ms="$(($($LOOPSLEEP_DATE +'%s * 1000 + 10#%-N / 1000000')))"
22
fi
23
}
24