[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r23979: {arm} Disabling the high cpu usage warning for now since it's usua (arm/trunk/src/interface)



Author: atagar
Date: 2010-12-23 16:18:52 +0000 (Thu, 23 Dec 2010)
New Revision: 23979

Modified:
   arm/trunk/src/interface/controller.py
Log:
Disabling the high cpu usage warning for now since it's usually triggered by user input.



Modified: arm/trunk/src/interface/controller.py
===================================================================
--- arm/trunk/src/interface/controller.py	2010-12-23 16:15:35 UTC (rev 23978)
+++ arm/trunk/src/interface/controller.py	2010-12-23 16:18:52 UTC (rev 23979)
@@ -733,7 +733,9 @@
         
         # once per minute check if the sustained cpu usage is above 5%, if so
         # then give a warning (and if able, some advice for lowering it)
-        if not isResourceWarningGiven and currentTime > (lastResourceCheck + 60):
+        # TODO: disabling this for now (scrolling causes cpu spikes for quick
+        # redraws, ie this is usually triggered by user input)
+        if False and not isResourceWarningGiven and currentTime > (lastResourceCheck + 60):
           if cpuAvg >= 0.05:
             msg = "Arm's cpu usage is high (averaging %0.3f%%)." % (100 * cpuAvg)