[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 16:01:08
Message-ID: 20050217160108.44DFD1D2B4 () office ! kde ! org
[Download RAW message or body]

CVS commit by coolo: 

off by one - it was supposed to say: if the machine has more than 4 CPUs,
we only share the mem with 3 of them. Now we did the exact opposite: even
used only 25% of the mem on single processor machines. Interesting no-one 
noticed so far (before bearingpoint.com)


  M +1 -1      main.cpp   1.111


--- kdenonbeta/icecream/icecream/daemon/main.cpp  #1.110:1.111
@@ -284,5 +284,5 @@ bool maybe_stats(bool force = false) {
 
         // Matz got in the urine that not all CPUs are always feed
-        mem_limit = std::max( msg.freeMem / std::max( max_kids, 4 ), 100U );
+        mem_limit = std::max( msg.freeMem / std::min( max_kids, 4 ), 100U );
 
         if ( !scheduler->send_msg( msg ) )


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

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