[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/icecream/icecream/daemon
From:       Stephan Kulow <coolo () kde ! org>
Date:       2005-02-17 10:27:43
Message-ID: 20050217102743.1A6A21D191 () office ! kde ! org
[Download RAW message or body]

CVS commit by coolo: 

if no ticks happened assume the machine just doesn't count idle 
(virtual machine and such).
Patch by Andreas Höfler at bearingpoint.com


  M +4 -2      load.cpp   1.16


--- kdenonbeta/icecream/icecream/daemon/load.cpp  #1.15:1.16
@@ -105,6 +105,8 @@ static void updateCPULoad( const char* l
     if ( load->idleLoad < 0 )
         load->idleLoad = 0;
-  } else
-    load->userLoad = load->sysLoad = load->niceLoad = load->idleLoad = 0;
+  } else {
+    load->userLoad = load->sysLoad = load->niceLoad = 0; 
+    load->idleLoad = 1000;
+  }
 
   load->userTicks = currUserTicks;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic