From 853038c98d0d6e56b05b071e7ec1419c5c9ecdb9 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Mon, 6 Jan 2014 13:52:19 -0700 Subject: [PATCH] Use bindonce to reduce objects to dirty check. Also remove some debug lines. Renable sparklines Remove debug --- panels/cluster/module.js | 2 -- panels/stats_table/module.html | 13 ++++++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/panels/cluster/module.js b/panels/cluster/module.js index 60dbf3bca116..ca3c6b8ca127 100644 --- a/panels/cluster/module.js +++ b/panels/cluster/module.js @@ -158,7 +158,6 @@ function (angular, app, _, kbn) { var checkReport = function() { if($cookies.marvelOptIn === 'IN') { if(_.isUndefined($cookies.marvelLastReport)) { - console.log('undefined'); return true; } else if (new Date().getTime() - parseInt($cookies.marvelLastReport,10) > reportInterval) { return true; @@ -182,7 +181,6 @@ function (angular, app, _, kbn) { $scope.config.stats_report_url, data ).success(function() { - console.log('reported'); $cookies.marvelLastReport = thisReport; }); }; diff --git a/panels/stats_table/module.html b/panels/stats_table/module.html index aa412cb407ad..30eaae42302b 100644 --- a/panels/stats_table/module.html +++ b/panels/stats_table/module.html @@ -42,7 +42,7 @@ Compact - +
{{panel.mode}} @@ -67,21 +67,20 @@
- {{data[row.id+"_"+metric.field].mean | metric_format:metric}} - +
- min: {{data[row.id+"_"+metric.field].min | metric_format:metric}}
- max: {{data[row.id+"_"+metric.field].max | metric_format:metric}} + min:
+ max:
- +
{{panel.mode}} @@ -105,7 +104,7 @@
- {{data[row.id+"_"+metric.field].mean | metric_format:metric}} +