Search found 1 match

by grump
May 19th, 2010, 2:54 am
Forum: General Help
Topic: migrated and upgraded to 0.5.2, lost system averages.
Replies: 6
Views: 3539

Re: migrated and upgraded to 0.5.2, lost system averages.

hey fellas, just thought it was worth mentioning here what was pointed out to me at the freebsd forums when i came up with that fix:

... the existence of os.getloadavg() ... which is a much better solution  :D

Code: Select all

import os
def loadavg():
    return '%.2f, %.2f, %.2f' % os.getloadavg()