Skip to content

Commit f18540a

Browse files
committed
fixed LoadAverage check
Variable "la" in LoadAverage check loop doesn't update. As a consequence, loop always checking the same value.
1 parent c9e8129 commit f18540a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/v-backup-user

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ while [ "$la" -ge "$BACKUP_LA_LIMIT" ]; do
7373
log_event "$E_LA" "$EVENT"
7474
exit $E_LA
7575
fi
76+
la=$(cat /proc/loadavg | cut -f 1 -d ' ' | cut -f 1 -d '.')
7677
(( ++i))
7778
done
7879

0 commit comments

Comments
 (0)