Skip to content

Commit de37872

Browse files
Update Disk_Utilization.sh
1 parent 292ba7c commit de37872

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Disk_Utilization.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PERCENT=30
66
# test for command line arguement is present
77
if [[ $# -le 0 ]]
88
then
9-
printf "Using default value for threshold!\n"
9+
printf "There are no disks running with more usage than= %d\n" $PERCENT
1010
# test if argument is an integer
1111
# if it is, use that as percent, if not use default
1212
else
@@ -25,6 +25,6 @@ do
2525
p=$(echo $data | awk '{print $2}')
2626
if [ $used -ge $PERCENT ]
2727
then
28-
echo "WARNING: The partition \"$p\" has used $used% of total available space - Date: $(date)"
28+
"$p\" has used $usedecho "WARNING: The partition \% of total available space - Date: $(date)"
2929
fi
3030
done

0 commit comments

Comments
 (0)