Strip off our nice new logging prefix here.
This commit is contained in:
parent
28776f10ba
commit
9048203023
1 changed files with 1 additions and 0 deletions
|
@ -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])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue