forgot to comment out a line for testing
authorDavid Carter <boojit@pundo.com>
Sun, 27 Nov 2005 16:42:49 +0000 (16:42 +0000)
committerDavid Carter <boojit@pundo.com>
Sun, 27 Nov 2005 16:42:49 +0000 (16:42 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@432 7f574dfc-610e-0410-a909-a81674777703

src/linux.c

index 87e17c4..cc54dcd 100644 (file)
@@ -471,11 +471,11 @@ inline static void update_stat()
                        }
                        /* TESTING -- I've removed this, because I don't think it is right. You shouldn't divide 
                                      by the cpu count here ... removing for testing */
-                       if (index == 0) {
+                       /* if (index == 0) {
                                info.cpu_usage[index] = curtmp / info.cpu_avg_samples / info.cpu_count; 
                        } else {
                                info.cpu_usage[index] = curtmp / info.cpu_avg_samples;
-                       } 
+                       }  */
                        /* TESTING -- this line replaces the prev. "suspect" if/else */
                        info.cpu_usage[index] = curtmp / info.cpu_avg_samples;