[Xfce4-commits] <xfce4-sensors-plugin:master> don't convert the GPU value at all, only clip after 1 digit

Fabian Nowak noreply at xfce.org
Mon May 2 20:26:02 CEST 2011


Updating branch refs/heads/master
         to a339539f2705f04feac7694674be5ef46bdeaf4c (commit)
       from 0b90d89f78a218eeefc94179f5787a0a209be3f5 (commit)

commit a339539f2705f04feac7694674be5ef46bdeaf4c
Author: Fabian Nowak <timystery at arcor.de>
Date:   Mon May 2 19:30:14 2011 +0200

    don't convert the GPU value at all, only clip after 1 digit

 lib/nvidia.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/nvidia.c b/lib/nvidia.c
index 25ad34f..47961f9 100644
--- a/lib/nvidia.c
+++ b/lib/nvidia.c
@@ -123,7 +123,7 @@ void refresh_nvidia (gpointer chip_feature, gpointer data) {
 	if (value == ZERO_KELVIN) return; 
 
 	g_free (cf -> formatted_value);
-	cf -> formatted_value = g_strdup_printf(_("%ld °C"), (long int) value);
+	cf -> formatted_value = g_strdup_printf(_("%.1f °C"), value);
 	cf -> raw_value = value;
 
 	TRACE ("leaves refresh_nvidia");



More information about the Xfce4-commits mailing list