Minor edits

This commit is contained in:
Derek Taylor
2023-08-31 20:59:12 -05:00
parent 9802a064f4
commit 09dcec8b14
2 changed files with 3 additions and 8 deletions

View File

@@ -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