Skip to content
Snippets Groups Projects
Commit c362c5de authored by Bob Mottram's avatar Bob Mottram
Browse files

Single line

parent 572ca64c
No related branches found
No related tags found
No related merge requests found
......@@ -1817,7 +1817,7 @@ function update_system_monitor {
disk_use=$(df -h | grep $test_drive)
disk_use_percent=0
if [[ "$disk_use" == *"$test_drive"* ]]; then
disk_use_percent=$(df -h | grep $test_drive | awk -F ' ' '{print $5}')
disk_use_percent=$(df -h | grep $test_drive | head_n 1 | awk -F ' ' '{print $5}')
fi
used_memory=$(free -m | grep "Mem:" | awk -F ' ' '{print $3}')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment