matusnovak / prometheus-smartctl

HDD S.M.A.R.T exporter for Prometheus written in Python
The Unlicense
155 stars 43 forks source link

Replace sleep code #24

Closed PhilipMay closed 2 years ago

PhilipMay commented 2 years ago

IMO this code:

https://github.com/matusnovak/prometheus-smartctl/blob/3fbd7bbb06b466bfeb7c1eb99aec45a5951f1458/smartprom.py#L176-L184

can be replaced by just this:

    while True:
        collect()
        time.sleep(20)

What do you think?

ngosang commented 2 years ago

Closed by #29