Browse Source

fixed LoadAverage check

Variable "la" in LoadAverage check loop doesn't update. As a consequence, loop always checking the same value.
Ursadon 12 years ago
parent
commit
f18540a154
1 changed files with 1 additions and 0 deletions
  1. 1 0
      bin/v-backup-user

+ 1 - 0
bin/v-backup-user

@@ -73,6 +73,7 @@ while [ "$la" -ge "$BACKUP_LA_LIMIT" ]; do
         log_event "$E_LA" "$EVENT"
         log_event "$E_LA" "$EVENT"
         exit $E_LA
         exit $E_LA
     fi
     fi
+    la=$(cat /proc/loadavg | cut -f 1 -d ' ' | cut -f 1 -d '.')
     (( ++i))
     (( ++i))
 done
 done