Avoid error when no data is available

This commit is contained in:
Martin Kompf 2019-09-24 15:06:21 +02:00
parent dcd1ac89df
commit 05004cbac0
1 changed files with 9 additions and 8 deletions

View File

@ -73,6 +73,7 @@ def detect_pauses(data):
def main():
#counter = read_fetch_output()
counter = read_rrd()
if len(counter) > 0:
pauses = detect_pauses(counter)
if verbose:
for p in pauses: