Skip to content

Commit

Permalink
Fix not correcting for bad baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
Arne de Laat committed Nov 27, 2015
1 parent 4abb097 commit ba4c1db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_publicdb/api/datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def retrieve_traces(node, timestamp, nanoseconds, raw=False):
baselines = event['baseline']
traces_str = [zlib.decompress(node.blobs[trace_idx]).split(',')
for trace_idx in traces_idx if trace_idx != -1]
traces = [[int(val) if baseline is -999 or raw else int(val) - baseline
traces = [[int(val) if baseline == -999 or raw else int(val) - baseline
for val in trace_str if val != '']
for baseline, trace_str in zip(baselines, traces_str)]

Expand Down

0 comments on commit ba4c1db

Please sign in to comment.