temperature is rounded off to nearest integer

This commit is contained in:
Dipesh Acharya
2012-12-26 15:29:22 +05:45
parent 71688a9b22
commit 9c5524ec9c

View File

@@ -271,7 +271,7 @@ CpuTemperature.prototype = {
_formatTemp: function(t) {
//uncomment the next line to display temperature in Fahrenheit
//return this._toFahrenheit(t).toString()+"\u00b0F";
return (Math.round(t*10)/10).toFixed(1).toString()+"\u00b0C";
return (Math.round(t)).toString()+"\u00b0C";
}
}