From 69dd31db1fb6c863b12e2af5cf5e760b41eb9303 Mon Sep 17 00:00:00 2001 From: Frank Wuerthwein Date: Fri, 1 May 2009 13:03:47 +0000 Subject: Fix processing of ds_single_list and fix a few typos --- src/lib/rrdFlotSupport.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/lib/rrdFlotSupport.js b/src/lib/rrdFlotSupport.js index e0162f4..ec460fd 100644 --- a/src/lib/rrdFlotSupport.js +++ b/src/lib/rrdFlotSupport.js @@ -129,7 +129,7 @@ function rrdRRAStackFlotObj(rrd_file,rra_idx, var ds=rrd_file.getDS(ds_id); var ds_name=ds.getName(); var ds_idx=ds.getIdx(); - tmp_ds_ids.append(ds_idx); // getting this is expensive, call only once + tmp_ds_ids.push(ds_idx); // getting this is expensive, call only once // initialize var flot_el={data:[]} @@ -137,7 +137,7 @@ function rrdRRAStackFlotObj(rrd_file,rra_idx, var ds_name=ds.getName(); flot_el.label= ds_name; } - tmp_flot_els.append(flot_el); + tmp_flot_els.push(flot_el); } var timestamp=first_el; @@ -150,21 +150,21 @@ function rrdRRAStackFlotObj(rrd_file,rra_idx, var el=rra.getEl(row,ds_idx); if (el!=undefined) { all_undef=false; - ds_val.push(el); + ds_vals.push(el); } else { all_def=false; - ds_val.push(0); + ds_vals.push(0); } } // end for id if (!all_undef) { // if all undefined, skip if (all_def || (!one_undefined_enough)) { // this is a valid column, do the math for (var id=1; id