Strip off our nice new logging prefix here.

This commit is contained in:
Ralph Bean 2014-07-17 19:28:25 +00:00
parent 28776f10ba
commit 9048203023

View file

@ -25,6 +25,7 @@ def query_timesince(category):
process = subprocess.Popen(cmd.split(), shell=False,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = process.communicate()
prefix, stdout = stdout.split("INFO] ", 1)
data = json.loads(stdout)
return float(data[0])