powernap loadavg monitor fails to detect load

Bug #1306994 reported by Cinquero
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
powernap
New
Undecided
Unassigned
powernap (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu Precise, amd64, powernap 2.17-0ubuntu2

Symptoms: system gets shut down even under load, although the loadmonitor had been configured.

Fix:

/usr/lib/python2.7/dist-packages/powernap/monitors/LoadMonitor.py :

Replace

 36 if os.getloadavg()[0] > t:

with

 36 if os.getloadavg()[0] > float(t):

and it works.

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.