mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-14 16:34:21 +09:00
temperature is rounded off to nearest integer
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user