Remove the unecesseray time thing

This commit is contained in:
Antoine Van Elstraete 2021-12-28 00:18:47 +01:00
parent 0f1ac76bcc
commit cac3225224
Signed by: AntoineVe
GPG Key ID: E36069A977E2A9ED

5
knot_
View File

@ -67,7 +67,6 @@ def proto(stats, config):
if __name__ == '__main__':
# Retrieve datas :
file = getenv('stats_file_path')
munin_time = getenv('munin_time', 300)
with open(file, "r") as stats_file:
stats = yaml.safe_load(stats_file)
if "mod-stats" not in stats:
@ -77,8 +76,8 @@ if __name__ == '__main__':
else:
config = False
if "responses" in argv[0]:
responses(stats, config, munin_time)
responses(stats, config)
elif "proto" in argv[0]:
proto(stats, config, munin_time)
proto(stats, config)
else:
pass # Nothing happens if no "munin underscore args"