Skip to content

Commit 3141e44

Browse files
committed
lsmod now uses sort
1 parent 811021a commit 3141e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/hardware_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
[rpwr, 'Linux Version', '/usr/bin/hostnamectl', r'Kernel:\s*(?P<o>.*)'],
2828
[rpwr, 'Operating System', '/usr/bin/hostnamectl', r'Operating System:\s*(?P<o>.*)'],
2929
[rpwr, 'Architecture', '/usr/bin/hostnamectl', r'Architecture:\s*(?P<o>.*)'],
30-
[rpwr, 'Kernel Modules', 'lsmod', r'(?P<o>.*)', re.IGNORECASE | re.DOTALL],
30+
[rpwr, 'Kernel Modules', 'lsmod | sort', r'(?P<o>.*)', re.IGNORECASE | re.DOTALL],
3131
[cf, 'CPU Utilization', psutil.cpu_percent, [0.1]],
3232
[cf, 'Free Memory', psutil.virtual_memory, [], 'available'],
3333
[cf, 'Disk Usage', psutil.disk_usage, ['/'], 'free'],

0 commit comments

Comments
 (0)