diff --git a/liquidprompt b/liquidprompt index bd17fcd..ae22999 100755 --- a/liquidprompt +++ b/liquidprompt @@ -1297,7 +1297,11 @@ _lp_temp_sensors() { temperature=$i fi done - echo -ne "$temperature" + if [[ $count -ne 0 ]] ; then + echo -ne "$(($temperature/$count))" + else + exit + fi } # Will set _LP_TEMP_FUNCTION so the temperature monitoring feature use an