80col (mostly)
This commit is contained in:
parent
4496c28f61
commit
05a119ecf6
@ -52,12 +52,15 @@ get_cpu_temp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_memory_usage() {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
get_public_ip() {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,7 +131,8 @@ fi
|
|||||||
[ -n "$INTERVAL" ] && stris int "$INTERVAL" \
|
[ -n "$INTERVAL" ] && stris int "$INTERVAL" \
|
||||||
|| INTERVAL=1 \
|
|| INTERVAL=1 \
|
||||||
&& true
|
&& 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 \
|
|| CPU_TEMP_SCALE=1 \
|
||||||
&& true
|
&& true
|
||||||
[ -n "$CPU_TEMP_FILES" ] \
|
[ -n "$CPU_TEMP_FILES" ] \
|
||||||
|
Loading…
Reference in New Issue
Block a user