#806465 xfce4-sensors-plugin: Please print temperature values without decimals

Package:
xfce4-sensors-plugin
Source:
xfce4-sensors-plugin
Description:
hardware sensors plugin for the Xfce4 panel
Submitter:
hikaru
Date:
2015-11-27 18:03:06 UTC
Severity:
wishlist
#806465#5
Date:
2015-11-27 18:02:04 UTC
From:
To:
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!