From 67bb915e4928468564cd0d8378103583249dae42 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sun, 4 Sep 2022 12:47:20 +0200 Subject: [PATCH] Move server URL to config --- clients/report_loadavg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/report_loadavg b/clients/report_loadavg index 0dd946e..c70c4d2 100755 --- a/clients/report_loadavg +++ b/clients/report_loadavg @@ -11,13 +11,13 @@ import requests hostname = socket.gethostbyaddr(socket.gethostname())[0] -baseurl = "http://127.0.0.1:5000/" def report_loadavg(): now = time.time() load = os.getloadavg() with open("config.json") as fh: client_config = json.load(fh) + baseurl = client_config["server"] while True: report = []