[Pkg-xfce-devel] Bug#806465: xfce4-sensors-plugin: Please print temperature values without decimals

hikaru hikaru.debian at web.de
Fri Nov 27 18:02:04 UTC 2015


Package: xfce4-sensors-plugin
Version: 1.2.6-1+b1
Severity: wishlist
Tags: patch

Dear Maintainers,

I like vertical panels, cramming multiple sensors in one place and so on.
Therefore I like to hide the temperature units to save screen space. 
To get rid of the decimals as well I always patch the code like this and
rebuild the package:


--- xfce4-sensors-plugin-1.2.6.orig/panel-plugin/sensors-plugin.c
+++ xfce4-sensors-plugin-1.2.6/panel-plugin/sensors-plugin.c
@@ -655,7 +655,7 @@ sensors_set_text_panel_label (t_sensors
                   g_free (tmpstring);
                 }
                 else {
-                    tmpstring = g_strdup_printf("%s<span foreground=\"%s\" size=\"%s\">%.1f</span>", myLabelText,
+                    tmpstring = g_strdup_printf("%s<span foreground=\"%s\" size=\"%s\">%.0f</span>", myLabelText,
                             chipfeature->color, sensors->font_size,
                             chipfeature->raw_value);
                     //myLabelText = g_strconcat (myLabelText, tmpstring, NULL);


Would you please consider applying this or some similar patch to the official
package?
This would spare me the inconvenience of rebuilding and holding the package.

I run several Intel platforms of different generations and none of them seems
to have sensors which report values with sub-degree accuary. So at least from
my point of view this decimal is pointless anyway.
Even if there are systems that report more accurate values I still doubt these
values would actually be meaningful, due to the sensor's placement within the
measured hardware components.

Thank you!



More information about the Pkg-xfce-devel mailing list