Show More
@@ -220,7 +220,7 b' def ulimit_info():' | |||||
220 | ('open files', get_resource(resource.RLIMIT_NOFILE)), |
|
220 | ('open files', get_resource(resource.RLIMIT_NOFILE)), | |
221 | ]) |
|
221 | ]) | |
222 |
|
222 | |||
223 |
text = ', '.join('{}:{}' |
|
223 | text = ', '.join(f'{k}:{v}' for k, v in data.items()) | |
224 |
|
224 | |||
225 | value = { |
|
225 | value = { | |
226 | 'limits': data, |
|
226 | 'limits': data, | |
@@ -299,7 +299,7 b' def machine_load():' | |||||
299 | # load averages |
|
299 | # load averages | |
300 | if hasattr(psutil.os, 'getloadavg'): |
|
300 | if hasattr(psutil.os, 'getloadavg'): | |
301 | value.update(dict( |
|
301 | value.update(dict( | |
302 | zip(['1_min', '5_min', '15_min'], psutil.os.getloadavg()) |
|
302 | list(zip(['1_min', '5_min', '15_min'], psutil.os.getloadavg())) | |
303 | )) |
|
303 | )) | |
304 |
|
304 | |||
305 | human_value = value.copy() |
|
305 | human_value = value.copy() |
General Comments 0
You need to be logged in to leave comments.
Login now