From 71cc4cb0c843a41e78d496f5394035d2be9f3444 Mon Sep 17 00:00:00 2001 From: Joe Myre Date: Thu, 11 Aug 2005 16:30:12 +0000 Subject: [PATCH] fixed divisor? git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@100 7f574dfc-610e-0410-a909-a81674777703 --- conky.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conky.c b/conky.c index ac9e39fe..13595543 100644 --- a/conky.c +++ b/conky.c @@ -1574,9 +1574,9 @@ static void generate_text() snprintf(p, n, "%s", get_freq()); } OBJ(freq_g) { - float ghz = (float)(atof(get_freq())/10); - printf("%f", ghz); - snprintf(p, n, "%f", ghz); + float ghz = (float)(atof(get_freq())/1000); + //printf("%f\n", ghz); + snprintf(p, n, "%'.2f", ghz); } OBJ(adt746xcpu) { snprintf(p, n, "%s", get_adt746x_cpu());