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]
|
hostname = socket.gethostbyaddr(socket.gethostname())[0]
|
||||||
baseurl = "http://127.0.0.1:5000/"
|
|
||||||
|
|
||||||
def report_loadavg():
|
def report_loadavg():
|
||||||
now = time.time()
|
now = time.time()
|
||||||
load = os.getloadavg()
|
load = os.getloadavg()
|
||||||
with open("config.json") as fh:
|
with open("config.json") as fh:
|
||||||
client_config = json.load(fh)
|
client_config = json.load(fh)
|
||||||
|
baseurl = client_config["server"]
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
report = []
|
report = []
|
||||||
|
|
Loading…
Reference in New Issue