LoadMonitor does not handle float values correctly

Bug #1070696 reported by Frank Steinberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
powernap
Fix Released
Undecided
Andres Rodriguez

Bug Description

--- LoadMonitor.py.orig 2011-12-01 18:43:12.000000000 +0100
+++ LoadMonitor.py 2012-10-24 08:52:03.573066949 +0200
@@ -33,7 +33,7 @@
        t = self._threshold
        if t == "n":
            t = multiprocessing.cpu_count()
- if os.getloadavg()[0] > t:
+ if os.getloadavg()[0] > float(t):
     return True
 return False

Changed in powernap:
assignee: nobody → Andres Rodriguez (andreserl)
Changed in powernap:
status: New → Fix Committed
Changed in powernap:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.