fixes #185
This commit is contained in:
parent
fe6d9f3ebe
commit
4c369bc458
@ -1195,7 +1195,7 @@ _lp_temp_sensors() {
|
||||
# Return the average system temperature we get through the sensors command
|
||||
local count=0
|
||||
local temperature=0
|
||||
for i in $(sensors | grep -E "^(Core|temp)" |
|
||||
for i in $(sensors | grep -E "^(Core|temp).*°(C|F)" |
|
||||
sed -r "s/.*: *\+([0-9]*)\..°.*/\1/g"); do
|
||||
temperature=$(($temperature+$i))
|
||||
count=$(($count+1))
|
||||
|
Loading…
x
Reference in New Issue
Block a user