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:
parent
51fde8e570
commit
71cc4cb0c8
6
conky.c
6
conky.c
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user