Merge branch 'master' of git.hjp.at:hjp/ltsdb
This commit is contained in:
commit
45d758d84a
|
@ -4,6 +4,7 @@ import hmac
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import pprint
|
import pprint
|
||||||
|
import random
|
||||||
import socket
|
import socket
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
@ -47,6 +48,8 @@ def report_loadavg():
|
||||||
pprint.pp(report)
|
pprint.pp(report)
|
||||||
r = requests.post(baseurl + "report", json=report)
|
r = requests.post(baseurl + "report", json=report)
|
||||||
print(r)
|
print(r)
|
||||||
return
|
if r.status_code != 409:
|
||||||
|
return
|
||||||
|
time.sleep(0.5 + random.random())
|
||||||
|
|
||||||
report_loadavg()
|
report_loadavg()
|
||||||
|
|
Loading…
Reference in New Issue