Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Lower increase of refresh to 50 rows, fix compact view message, closes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed Jan 10, 2014
1 parent 9f88b4d commit 1ba7ad0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion panels/stats_table/module.html
Original file line number Diff line number Diff line change
Expand Up @@ -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> /
Expand Down
2 changes: 1 addition & 1 deletion panels/stats_table/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 1ba7ad0

Please sign in to comment.