Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasSchaut authored Aug 27, 2022
1 parent d4bd4ce commit 405f934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

if __name__ == '__main__':
cfg = config.get()
api_data = api.get_ns2_api_data(cfg["ns2_stats_api_url"])
init()

# Start up the server to expose the metrics_handler.
Expand All @@ -20,5 +19,6 @@

# Generate some requests.
while True:
api_data = api.get_ns2_api_data(cfg["ns2_stats_api_url"])
update_all(api_data)
time.sleep(cfg["metrics_update_interval_in_seconds"])

0 comments on commit 405f934

Please sign in to comment.