diff --git a/liquidprompt b/liquidprompt index 9cc75a7..9c7b9b5 100755 --- a/liquidprompt +++ b/liquidprompt @@ -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))