Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 119 def loadavg():
- 120 '''
- 121 Return the load averages for this minion
- 122
- 123 CLI Example::
- 124
- 125 salt '*' status.loadavg
- 126 '''
- 127 procf = '/proc/loadavg'
- 128 if not os.path.isfile(procf):
- 129 comps = "%.2f %.2f %.2f" % os.getloadavg()
- 130 else:
- 131 comps = salt.utils.fopen(procf, 'r').read().strip()
- 132 load_avg = comps.split()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement