Lower increase of refresh to 50 rows, fix compact view message, closes #17

This commit is contained in:
Rashid Khan 2014-01-10 14:09:47 -07:00
parent 9f88b4db97
commit 1ba7ad066d
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@
<div class="pull-left marvel-header marvel-table" ng-show="rows.length > 0">
<input type="text" class="input-medium" placeholder="Filter {{panel.mode}}..." ng-model="panel.rowFilter"> <span class="count">{{(rows|filter:panel.rowFilter|limitTo:rowLimit).length}} of {{rows.length}} {{panel.mode}}</span> / {{(rows|filter:{'selected':true}).length}} selected / Last 10m </span>
<br>
<span class="small muted pull-right" ng-show="!viewSelect"> <i class="icon-warning"></i> Compact view. Filter nodes to 5 or less, or set the page refresh rate to 2m or greater for more options.</span>
<span class="small muted pull-right" ng-show="!viewSelect"> <i class="icon-warning"></i> Compact view. Filter {{panel.mode}} to 5 or less, or set the page refresh rate to 2m or greater for more options.</span>
</div>
<div class="pull-right" ng-if="viewSelect">
<a href="" ng-class="{strong:!panel.compact}" ng-click="panel.compact=false">Full</a> /

View file

@ -218,7 +218,7 @@ define([
$scope.panel.compact = true;
$scope.sparkLines = true;
$scope.viewSelect = false;
if(l > 100 && kbn.interval_to_seconds(dashboard.current.refresh || '1y') < 300) {
if(l > 50 && kbn.interval_to_seconds(dashboard.current.refresh || '1y') < 120) {
dashboard.set_interval('2m');
alertSrv.set('Refresh rate',
'Due to the large size of your cluster, the refresh rate has been adjusted to 2m',