diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/examples/rrdJFlotFilter.html | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/examples/rrdJFlotFilter.html b/src/examples/rrdJFlotFilter.html index 1fee276..eb49ec2 100644 --- a/src/examples/rrdJFlotFilter.html +++ b/src/examples/rrdJFlotFilter.html @@ -87,13 +87,6 @@ // Next three functions are for use in RRDFilterOp, // which requires a list of functions, one for each DS - //Do nothing to the DS - function DoNothing(ds) { - this.getName = function() {return ds;} - this.getDSNames = function() {return [ds];} - this.computeResult = function(val_list) {return val_list[0];} - } - //Sum two DSs function SumDS(ds1,ds2) { this.getName = function() {return ds1+"+"+ds2;} @@ -151,10 +144,9 @@ var i = 0; //create a new rrdlist, which contains all original elements - // (kept the same by DoNothing()) // plus additional operated-on DSs from RRDFilterOp for (i=0;i<rrd_data.getNrDSs();i++) { - op_list.push(new DoNothing(rrd_data.getDS(i).getName())); + op_list.push(i); DS_list.push(rrd_data.getDS(i)) } op_list.push(new MultiSumDS(DS_list)); |