Don't write to log if not past CRIT_DISK_USAGE

This commit is contained in:
weslambert
2020-08-25 11:19:36 -04:00
committed by GitHub
parent 6c5f8f7d53
commit a8f727ad40

View File

@@ -115,7 +115,5 @@ if [ "$CUR_USAGE" -gt "$CRIT_DISK_USAGE" ]; then
clean
CUR_USAGE=$(df -P $SENSOR_DIR | tail -1 | awk '{print $5}' | tr -d %)
done
else
echo "$(date) - Current usage value of $CUR_USAGE not greater than CRIT_DISK_USAGE value of $CRIT_DISK_USAGE..." >> $LOG
fi