Permalink
Browse files

Merge pull request #81 from Ursadon/master

fixed LoadAverage check (Thanks to Ursadon)
  • Loading branch information...
serghey-rodin committed Sep 11, 2013
2 parents c9e8129 + f18540a commit d565910048f5930e489b8d1824ab054727cc4481
Showing with 1 addition and 0 deletions.
  1. +1 −0 bin/v-backup-user
View
@@ -73,6 +73,7 @@ while [ "$la" -ge "$BACKUP_LA_LIMIT" ]; do
log_event "$E_LA" "$EVENT"
exit $E_LA
fi
+ la=$(cat /proc/loadavg | cut -f 1 -d ' ' | cut -f 1 -d '.')
(( ++i))
done

0 comments on commit d565910

Please sign in to comment.