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

Updating tempf changes for proper floating point formatting

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@86 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Joe Myre 2005-08-08 14:22:33 +00:00
parent 73002b6de8
commit 0b8d982116

View File

@ -2431,7 +2431,7 @@ static void generate_text()
} }
OBJ(metar_tempf) { OBJ(metar_tempf) {
if (data.temp != INT_MAX && metar_worked) if (data.temp != INT_MAX && metar_worked)
snprintf(p, n, "%3f", snprintf(p, n, "%'.1f",
(data.temp + (data.temp +
40) * 9.0 / 5 - 40); 40) * 9.0 / 5 - 40);
else else