Commit 5ad95a1c by Torkel Ödegaard

Merge branch 'influxdb' of github.com:pmenglund/grafana into pmenglund-influxdb

parents de8d4560 9dfb03aa
...@@ -138,6 +138,7 @@ function (angular, _, kbn) { ...@@ -138,6 +138,7 @@ function (angular, _, kbn) {
var params = { var params = {
u: _this.username, u: _this.username,
p: _this.password, p: _this.password,
time_precision: 's',
q: query q: query
}; };
...@@ -171,9 +172,7 @@ function (angular, _, kbn) { ...@@ -171,9 +172,7 @@ function (angular, _, kbn) {
var datapoints = []; var datapoints = [];
for(var i = 0; i < series.points.length; i++) { for(var i = 0; i < series.points.length; i++) {
var t = Math.floor(series.points[i][timeCol] / 1000); datapoints[i] = [series.points[i][index], series.points[i][timeCol]];
var v = series.points[i][index];
datapoints[i] = [v,t];
} }
output.push({ target:target, datapoints:datapoints }); output.push({ target:target, datapoints:datapoints });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment