freebsd-ports/sysutils/conky/files/patch-src-freebsd.c
Roman Bogorodskiy e8ed9fc36e - Fix bmpx dependency
- Fix CPU frequency displaying [1]

Reported by:		Karsten Rothemund <photor@photor.de> [1]
2006-05-24 04:19:58 +00:00

11 lines
358 B
C

--- src/freebsd.c.orig Sun Mar 26 01:47:50 2006
+++ src/freebsd.c Wed May 24 07:57:35 2006
@@ -508,7 +508,7 @@
if (GETSYSCTL("dev.cpu.0.freq", freq) == 0)
snprintf(p_client_buffer, client_buffer_size,
- p_format, freq/divisor);
+ p_format, (float)freq/(float)divisor);
else
snprintf(p_client_buffer, client_buffer_size, p_format, 0.0f);
}