]> arthur.barton.de Git - netdata.git/commitdiff
fix multi-cpu sensors
authorpaulfantom <paulfantom@gmail.com>
Thu, 21 Jul 2016 13:25:16 +0000 (15:25 +0200)
committerpaulfantom <paulfantom@gmail.com>
Thu, 21 Jul 2016 13:25:16 +0000 (15:25 +0200)
python.d/sensors.chart.py

index 1eb07c73d315b24219acc4f253241d8ddd846851..0b6714e39825865e31cbc2cefc034387ecf6977c 100644 (file)
@@ -80,8 +80,10 @@ class Service(SimpleService):
                 name = ""
                 lines = []
                 pref = str(chip.prefix.decode())
+                print(pref)
                 if len(self.chips) != 0 and not any([ex.startswith(pref) for ex in self.chips]):
                     continue
+                pref = pref + '_' + str(chip.addr)
                 for feature in chip:
                     try:
                         float(feature.get_value())