updated 30-hdd-temp, now worcking from smartctl

This commit is contained in:
2019-08-16 13:06:08 +03:00
parent db0e746111
commit d07354218e
5 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
mountpoints=('/mnt/sdb1' '/')
mountpoints=('/mnt/sdb1' '/' '/mnt/backup/')
barWidth=50
maxDiscUsage=90
clear="\e[39m\e[0m"
@@ -9,7 +9,7 @@ barclear=""
echo
for point in "${mountpoints[@]}"; do
line=$(df -h "${point}")
line=$(df -hl "${point}")
usagePercent=$(echo "$line"|tail -n1|awk '{print $5;}'|sed 's/%//')
usedBarWidth=$((($usagePercent*$barWidth)/100))
barContent=""