0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-05-14 21:42:37 +00:00

sensors: don't ignore 0 RPM funs on start ()

* sensors: do not skip sf with zero value

* sensors: fix update
This commit is contained in:
Ilya Mashchenko 2018-11-26 22:58:46 +03:00 committed by GitHub
parent dbbe252e93
commit 1f84c586f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,7 +139,7 @@ class Service(SimpleService):
except sensors.SensorsError as error:
self.error('{0}: {1}'.format(sf.name, error))
continue
if not vals or vals[0] == 0:
if not vals or (vals[0] == 0 and feature.type != 1):
continue
if TYPE_MAP[feature.type] == sensor:
# create chart