mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
allow for temps in /proc/acpi/thermal_zone/THRC/temperature
Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
46f092bda0
commit
a417559231
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ if [ "$1" = "--detail" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
for i in `ls "$DIR/THM"*"/temperature"`; do
|
||||
for i in `ls "$DIR/TH"*"/temperature"`; do
|
||||
t=$(sed "s/^[^0-9]\+//" "$i" | sed "s/\s.*$//")
|
||||
printf "\005{= kY}%sC\005{-} " "$t"
|
||||
break
|
||||
|
|
|
@ -23,7 +23,7 @@ if [ "$1" = "--detail" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
for i in `ls "$DIR/THM"*"/temperature"`; do
|
||||
for i in `ls "$DIR/TH"*"/temperature"`; do
|
||||
t=$(sed "s/^[^0-9]\+//" "$i" | sed "s/\s.*$//" | awk '{printf "%.0f", $1 *9/5 + 32}')
|
||||
printf "\005{= kY}%sF\005{-} " "$t"
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue