|
|
WMBlueCPU
User Comments
A cool one
I was so glad to use it then I made a package for Debian testing. Feel free to get it from my website
bug when monitoring CPU0
On my SMP machine, it only worked when monitoring CPU #1. There is a bug in the code for version 0.9 that causes this. The fix is a very small source code patch:
--- orig/wmbluecpu/cpu_linux.c 2008-07-03 01:34:57.000000000 -0400
+++ wmbluecpu/cpu_linux.c 2010-02-01 11:18:40.717742537 -0500
@@ -38,7 +38,7 @@
FILE *file;
long cpu, nice, system, idle, used, total;
char buf[128];
- int c;
+ int c=-1;
file = fopen("/proc/stat", "r");
if(!file)
|
|
|
|