Move server URL to config
This commit is contained in:
parent
d34e57a9ff
commit
67bb915e49
|
@ -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 = []
|
||||
|
|
Loading…
Reference in New Issue