1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00

Upercase the temp_unit

Signed-off-by: Samuel Boucher <scboucher@users.noreply.github.com>
This commit is contained in:
Samuel Boucher 2020-08-09 13:21:58 -04:00
parent 4bef49e2eb
commit 8b4921405a

View File

@ -237,6 +237,7 @@ get_sys_stats() {
sys_name=$(hostname) sys_name=$(hostname)
[[ -n "$TEMPERATUREUNIT" ]] && temp_unit="$TEMPERATUREUNIT" || temp_unit="c" [[ -n "$TEMPERATUREUNIT" ]] && temp_unit="$TEMPERATUREUNIT" || temp_unit="c"
temp_unit="${temp_unit^^}"
# Get storage stats for partition mounted on / # Get storage stats for partition mounted on /
read -r -a disk_raw <<< "$(df -B1 / 2> /dev/null | awk 'END{ print $3,$2,$5 }')" read -r -a disk_raw <<< "$(df -B1 / 2> /dev/null | awk 'END{ print $3,$2,$5 }')"