[Xfce4-commits] <xfce4-sensors-plugin:master> convert double to long int for formatted output
Fabian Nowak
noreply at xfce.org
Mon May 2 20:26:01 CEST 2011
Updating branch refs/heads/master
to 0b90d89f78a218eeefc94179f5787a0a209be3f5 (commit)
from 5c19d716bc7f94f5341b31cb49cef5e33971837a (commit)
commit 0b90d89f78a218eeefc94179f5787a0a209be3f5
Author: Fabian Nowak <timystery at arcor.de>
Date: Mon May 2 19:28:36 2011 +0200
convert double to long int for formatted output
lib/nvidia.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/nvidia.c b/lib/nvidia.c
index bae4885..25ad34f 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"), value);
+ cf -> formatted_value = g_strdup_printf(_("%ld °C"), (long int) value);
cf -> raw_value = value;
TRACE ("leaves refresh_nvidia");
More information about the Xfce4-commits
mailing list