]> arthur.barton.de Git - netdata.git/commitdiff
disable negative sensor values
authorpaulfantom <paulfantom@gmail.com>
Wed, 13 Jul 2016 15:43:04 +0000 (17:43 +0200)
committerpaulfantom <paulfantom@gmail.com>
Wed, 13 Jul 2016 15:43:04 +0000 (17:43 +0200)
python.d/sensors.chart.py

index 4345228e44531d0861530776326b46da051d776e..1eb07c73d315b24219acc4f253241d8ddd846851 100644 (file)
@@ -87,7 +87,7 @@ class Service(SimpleService):
                         float(feature.get_value())
                     except ValueError:
                         continue
-                    if feature.get_value() == 0:
+                    if feature.get_value() < 0:
                         continue
                     if sensors.TYPE_DICT[feature.type] == type:
                         name = pref + "_" + sensors.TYPE_DICT[feature.type]