This commit is contained in:
François Schmidts 2013-05-20 18:14:20 +02:00
parent fe6d9f3ebe
commit 4c369bc458

View File

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