self.gnuplot_draw = function(h_cols) {
$log.info( 'gnuplot_draw', h_cols );
- if (h_cols) self.gnuplot.cols = h_cols;
+ if (h_cols.length) {
+ self.gnuplot.cols = h_cols;
+ } else {
+ $log.warn("no columns for gnuplot");
+ return;
+ }
var cols = [ 'timestamp' ];
for ( var i = 0; i < h_cols.length; i++ ) {
cols.push( 'h->\'' + h_cols[i] + '\' as "' + h_cols[i] + '"' );
this.cpe_hash = {
'Davolink': [ 'Max_down', 'Max_up' ],
-// 'Davolink': [ 'select timestamp,h->\'Max_down\' as Max_down,h->\'Max_up\' as Max_up from cpe_Davolink where username = \'', '\' order by timestamp desc limit 100' ],
-// 'EasyGateway':
+ 'EasyGateway': [ 'upstreamCurrRate', 'upstreamMaxRate', 'upstreamNoiseMargin' ],
};
this.keys = function(h) {