1
0

80col (mostly)

This commit is contained in:
Deven Blake 2021-06-17 08:25:53 -04:00
parent 4496c28f61
commit 05a119ecf6

View File

@ -52,12 +52,15 @@ get_cpu_temp() {
}
get_memory_usage() {
printf "%b" "$(free | head -n 2 | tail -n 1 | awk '{print $3 " used / " $2 " total"}')"
printf "%b" \
"$(free | head -n 2 | tail -n 1 \
| awk '{print $3 " used / " $2 " total"}')"
return
}
get_public_ip() {
curl "$PUBLIC_IP_FETCH_URL" --no-progress-meter 2>/dev/null || printf "[error fetching IP]\n"
curl "$PUBLIC_IP_FETCH_URL" --no-progress-meter 2>/dev/null \
|| printf "[error fetching IP]\n"
return
}
@ -128,7 +131,8 @@ fi
[ -n "$INTERVAL" ] && stris int "$INTERVAL" \
|| INTERVAL=1 \
&& true
[ -n "$CPU_TEMP_SCALE" ] && stris int "$CPU_TEMP_SCALE" && gt "$CPU_TEMP_SCALE" 0 \
[ -n "$CPU_TEMP_SCALE" ] && stris int "$CPU_TEMP_SCALE" \
&& gt "$CPU_TEMP_SCALE" 0 \
|| CPU_TEMP_SCALE=1 \
&& true
[ -n "$CPU_TEMP_FILES" ] \