Skip to content

Commit 2664031

Browse files
authored
Fix numa parsing in job exporter (#143)
Fix numa parsing in job exporter on GB200.
1 parent f367fc4 commit 2664031

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/job-exporter/src/Moneo/src/worker/exporters/node_exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def get_core_numa_mapping(core_count):
273273
numa_mapping = {}
274274
lines = output.split('\n')
275275
for line in lines:
276-
if 'node ' in line and 'cpus' in line:
276+
if 'node ' in line and 'cpus' in line and not line.strip().endswith('cpus:'):
277277
current_numa_domain = int(re.search(r'node (\d+)', line).group(1))
278278
if ':' in line:
279279
cpus_str = line.split(': ')[1].split()

0 commit comments

Comments
 (0)