AutoYADM commit: 2024-12-10 18:15:01
This commit is contained in:
parent
8cff8cbc62
commit
d2af5cfc3a
3 changed files with 15 additions and 12 deletions
|
@ -21,7 +21,7 @@ ALERT_LOW="${ALERT_LOW:-10}" # color will turn red under this value (default: 10
|
|||
|
||||
LOCAL_FLAG="-l"
|
||||
if [ "$1" = "-n" ] || [ "$2" = "-n" ]; then
|
||||
LOCAL_FLAG=""
|
||||
LOCAL_FLAG=""
|
||||
fi
|
||||
|
||||
df -h -P $LOCAL_FLAG "$DIR" | awk -v label="$LABEL" -v alert_low=$ALERT_LOW '
|
||||
|
@ -42,7 +42,7 @@ END {
|
|||
gsub(/%$/,"",use)
|
||||
if (100 - use < alert_low) {
|
||||
# color
|
||||
print "#FF0000"
|
||||
print "#933737"
|
||||
}
|
||||
}
|
||||
'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue