Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

Commit

Permalink
Merge pull request #5 from streamnsight/master
Browse files Browse the repository at this point in the history
cast values as floats, not strings
  • Loading branch information
Danni Moiseyev authored Jul 31, 2019
2 parents d0dd69a + 8bf6ab9 commit e7cc610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GrafanaDatastoreServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def query():
args += ['avg', int(round(request['intervalMs']/1000))]
print(args)
redis_resp = redis_client.execute_command(*args)
datapoints = [(x2.decode("ascii"), x1*1000) for x1, x2 in redis_resp]
datapoints = [(float(x2.decode("ascii")), x1*1000) for x1, x2 in redis_resp]
response.append(dict(target=target, datapoints=datapoints))
return jsonify(response)

Expand Down

0 comments on commit e7cc610

Please sign in to comment.