1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Change default dashboard poll to 5 sec, fixes #3376

Sidekiq 4.0 changed the heartbeat to update statistics only every five seconds so there’s little point to polling more frequently.
This commit is contained in:
Mike Perham 2017-03-08 14:46:21 -08:00
parent da54d220af
commit c70e313a80
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ factory.defined&&factory.defined(function(d){return d.y!==null});return factory}
var poller;
var realtimeGraph = function(updatePath) {
var timeInterval = parseInt(localStorage.timeInterval || '2000');
var timeInterval = parseInt(localStorage.timeInterval || '5000');
var graphElement = document.getElementById("realtime");

View file

@ -9,9 +9,9 @@
</h3>
<div class="interval-slider">
<span class="interval-slider-label"><%= t('PollingInterval') %>:</span>
<span class="current-interval">2 sec</span>
<span class="current-interval">5 sec</span>
<br/>
<input type="range" min="2000" max="20000" step="1000" value="2000"/>
<input type="range" min="2000" max="20000" step="1000" value="5000"/>
</div>
</div>