mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-15 00:44:22 +09:00
Fix temperatures being rounded down instead of to the closest integer
This commit is contained in:
@@ -610,8 +610,7 @@ var FreonMenuButton = new Lang.Class({
|
|||||||
}
|
}
|
||||||
let format = '%.1f';
|
let format = '%.1f';
|
||||||
if (!this._settings.get_boolean('show-decimal-value')){
|
if (!this._settings.get_boolean('show-decimal-value')){
|
||||||
//ret = Math.round(value);
|
format = '%.0f';
|
||||||
format = '%d';
|
|
||||||
}
|
}
|
||||||
format += '%s';
|
format += '%s';
|
||||||
return format.format(value, (this._settings.get_string('unit')=='fahrenheit') ? "\u00b0F" : "\u00b0C");
|
return format.format(value, (this._settings.get_string('unit')=='fahrenheit') ? "\u00b0F" : "\u00b0C");
|
||||||
|
|||||||
Reference in New Issue
Block a user