mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-25 20:40:24 +10:00
Minor edits
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Variable
|
||||
temp=$(cat /sys/class/thermal/thermal_zone0/temp)
|
||||
cputemp=$(expr $temp / 1000)
|
||||
base=32
|
||||
|
||||
# Main
|
||||
Fahrenheit=$(expr $cputemp \* 9 / 5 + $base)
|
||||
echo $Fahrenheit
|
||||
cpuTemp=$(sensors | grep Tctl | awk -F '+' '{print $2}')
|
||||
echo "$cpuTemp"
|
||||
|
||||
exit
|
||||
|
||||
Reference in New Issue
Block a user