Skip to content

Commit

Permalink
Fixed(topology): numa-layout and socket-layout were mixed-up.
Browse files Browse the repository at this point in the history
  • Loading branch information
strizhechenko committed Aug 24, 2017
1 parent 1e3ec63 commit 4dfdff8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netutils_linux_monitoring/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def detect_layouts(self, lscpu_output=None):
stdout = self.detect_layout_lscpu(lscpu_output)
rows = [row for row in stdout.strip().split('\n') if not row.startswith('#')]
layouts = [[any2int(value) for value in row.split(',')][2:4] for row in rows]
numa_layout, socket_layout = zip(*layouts)
socket_layout, numa_layout = zip(*layouts)
self.numa_layout = dict(enumerate(numa_layout))
self.socket_layout = dict(enumerate(socket_layout))

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def read(*paths):

setuptools.setup(
name='netutils-linux',
version='2.4.6',
version='2.5.0',
author='Oleg Strizhechenko',
author_email='[email protected]',
license='MIT',
Expand Down

0 comments on commit 4dfdff8

Please sign in to comment.