Skip to content

Commit b9ed265

Browse files
devkapilbansalKapil Bansal
authored andcommitted
[refactor] Minor changes
1 parent 776726a commit b9ed265

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openwisp-monitoring/files/monitoring.agent

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,9 @@ main() {
347347
done
348348

349349
INTERVAL=${INTERVAL:-300}
350-
REGISTRATION_INTERVAL=$((INTERVAL / 10))
351350
INTERVAL="$(time_to_seconds "$INTERVAL")"
352351
[ -z "$INTERVAL" ] && echoerr "Interval is invalid. Use time value(eg: '10', '2m', '3h', '1d')"
352+
REGISTRATION_INTERVAL=$((INTERVAL / 10))
353353
VERBOSE_MODE=${VERBOSE_MODE:-0}
354354
BOOTUP_DELAY=${BOOTUP_DELAY:-10}
355355
TMP_DIR="/tmp/openwisp/monitoring"

0 commit comments

Comments
 (0)