fix nfs showing
This commit is contained in:
@@ -9,7 +9,7 @@ barclear=""
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
for point in "${mountpoints[@]}"; do
|
for point in "${mountpoints[@]}"; do
|
||||||
line=$(df -hl "${point}")
|
line=$(df -h "${point}")
|
||||||
usagePercent=$(echo "$line"|tail -n1|awk '{print $5;}'|sed 's/%//')
|
usagePercent=$(echo "$line"|tail -n1|awk '{print $5;}'|sed 's/%//')
|
||||||
usedBarWidth=$((($usagePercent*$barWidth)/100))
|
usedBarWidth=$((($usagePercent*$barWidth)/100))
|
||||||
barContent=""
|
barContent=""
|
||||||
|
|||||||
Reference in New Issue
Block a user