1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 10:35:10 +00:00

fixed divisor?

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@100 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Joe Myre 2005-08-11 16:30:12 +00:00
parent 51fde8e570
commit 71cc4cb0c8

View File

@ -1574,9 +1574,9 @@ static void generate_text()
snprintf(p, n, "%s", get_freq()); snprintf(p, n, "%s", get_freq());
} }
OBJ(freq_g) { OBJ(freq_g) {
float ghz = (float)(atof(get_freq())/10); float ghz = (float)(atof(get_freq())/1000);
printf("%f", ghz); //printf("%f\n", ghz);
snprintf(p, n, "%f", ghz); snprintf(p, n, "%'.2f", ghz);
} }
OBJ(adt746xcpu) { OBJ(adt746xcpu) {
snprintf(p, n, "%s", get_adt746x_cpu()); snprintf(p, n, "%s", get_adt746x_cpu());