mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-14 16:34:21 +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';
|
||||
if (!this._settings.get_boolean('show-decimal-value')){
|
||||
//ret = Math.round(value);
|
||||
format = '%d';
|
||||
format = '%.0f';
|
||||
}
|
||||
format += '%s';
|
||||
return format.format(value, (this._settings.get_string('unit')=='fahrenheit') ? "\u00b0F" : "\u00b0C");
|
||||
|
||||
Reference in New Issue
Block a user