powernap loadavg monitor fails to detect load

Bug #1306994 reported by Cinquero on 2014-04-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
powernap
Undecided
Unassigned
powernap (Ubuntu)
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  Edit
Everyone can see this information.

Other bug subscribers