Skip to content

Commit d8b0515

Browse files
committed
sensors_temperatures() / linux: convert defaultdict to dict
1 parent 7300bd4 commit d8b0515

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

IDEAS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,4 @@ RESOURCES
169169
- libstatgrab: http://www.i-scream.org/libstatgrab/
170170
- top: http://www.unixtop.org/
171171
- oshi: https://github.com/oshi/oshi
172+
- netdata: https://github.com/netdata/netdata

psutil/_pslinux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ def sensors_temperatures():
12781278

12791279
ret[unit_name].append(('', current, high, critical))
12801280

1281-
return ret
1281+
return dict(ret)
12821282

12831283

12841284
def sensors_fans():

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ def main():
284284
'ps', 'top', 'kill', 'free', 'lsof', 'netstat', 'nice', 'tty',
285285
'ionice', 'uptime', 'taskmgr', 'process', 'df', 'iotop', 'iostat',
286286
'ifconfig', 'taskset', 'who', 'pidof', 'pmap', 'smem', 'pstree',
287-
'monitoring', 'ulimit', 'prlimit', 'smem',
287+
'monitoring', 'ulimit', 'prlimit', 'smem', 'performance',
288+
'metrics', 'agent', 'observability',
288289
],
289290
author='Giampaolo Rodola',
290291
author_email='[email protected]',

0 commit comments

Comments
 (0)