##// END OF EJS Templates
system-info: fixed iterators
super-admin -
r4983:82d253bd default
parent child Browse files
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('{}:{}'.format(k, v) for k, v in data.items())
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