... the existence of os.getloadavg() ... which is a much better solution
Code: Select all
import os
def loadavg():
return '%.2f, %.2f, %.2f' % os.getloadavg()
Code: Select all
import os
def loadavg():
return '%.2f, %.2f, %.2f' % os.getloadavg()