Remove the unecesseray time thing
This commit is contained in:
parent
0f1ac76bcc
commit
cac3225224
5
knot_
5
knot_
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user