]> arthur.barton.de Git - netdata.git/blobdiff - plugins.d/loopsleepms.sh.inc
prevent too frequent loops if div is missing
[netdata.git] / plugins.d / loopsleepms.sh.inc
index d7d4d04dec40ebd39945ad2c516525c7b3af87a8..c0bbb5fdfadeb288abd47b1c67a4de98bc9f6c1e 100644 (file)
@@ -40,7 +40,7 @@ loopsleepms() {
                shift
                t="$1"
        fi
-       div="$2"
+       div="${2-100}"
 
        # $t = the time in seconds to wait