Skip to content

Commit

Permalink
fix device group detection for mellanox in filesingle
Browse files Browse the repository at this point in the history
  • Loading branch information
baallan authored and tom95858 committed Sep 4, 2024
1 parent 3fb5eb5 commit 25a17b2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ldms/src/sampler/filesingle/ldms-sensors-config
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#! /usr/bin/env python2
# $0: sensors_bin_path
# Run sensors under strace to discover where sensor files
# live on the current system and generate a draft file.
import warnings
Expand Down Expand Up @@ -178,8 +177,9 @@ def main():
if lastfiletype in ignore_types:
continue
continue
if l.find(":") == -1:
lastgroup = l
# exclude lines with "xxxxx:" and "sdf: bar" but allow : in mlx device names.
if ": " not in line and line[-1] != ':':
last_group = line

for k,d in devices.iteritems():
if len(d["items"]) > 0:
Expand Down Expand Up @@ -262,4 +262,3 @@ def main():

if __name__ == "__main__":
main()

0 comments on commit 25a17b2

Please sign in to comment.