Skip to content

Commit 4dfdff8

Browse files
committed
Fixed(topology): numa-layout and socket-layout were mixed-up.
1 parent 1e3ec63 commit 4dfdff8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

netutils_linux_monitoring/topology.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def detect_layouts(self, lscpu_output=None):
3636
stdout = self.detect_layout_lscpu(lscpu_output)
3737
rows = [row for row in stdout.strip().split('\n') if not row.startswith('#')]
3838
layouts = [[any2int(value) for value in row.split(',')][2:4] for row in rows]
39-
numa_layout, socket_layout = zip(*layouts)
39+
socket_layout, numa_layout = zip(*layouts)
4040
self.numa_layout = dict(enumerate(numa_layout))
4141
self.socket_layout = dict(enumerate(socket_layout))
4242

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def read(*paths):
1616

1717
setuptools.setup(
1818
name='netutils-linux',
19-
version='2.4.6',
19+
version='2.5.0',
2020
author='Oleg Strizhechenko',
2121
author_email='[email protected]',
2222
license='MIT',

0 commit comments

Comments
 (0)