Skip to content

Commit

Permalink
Merge pull request #955 from ChristianMayer/fix_datasourceIndex_RRD
Browse files Browse the repository at this point in the history
Fix #954 - make datasourceIndex work again as RRD data for a diagram
  • Loading branch information
peuter committed Sep 23, 2019
2 parents 2c0eb42 + cfbbd9c commit 84497bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/class/cv/plugins/diagram/AbstractDiagram.js
Expand Up @@ -297,7 +297,7 @@ qx.Class.define('cv.plugins.diagram.AbstractDiagram', {
var millisOffset = (ts.offset ? ts.offset * 1000 : 0);
var newRrd = new Array(tsdata.length);
for (var j = 0, l = tsdata.length; j < l; j++) {
if( ts.type === 'rrd' )
if( ts.tsType === 'rrd' )
newRrd[j] = [(tsdata[j][0] + millisOffset), (parseFloat(tsdata[j][1][ts.dsIndex]) * ts.scaling)];
else
newRrd[j] = [(tsdata[j][0] + millisOffset), (parseFloat(tsdata[j][1]) * ts.scaling)];
Expand Down

0 comments on commit 84497bb

Please sign in to comment.