Commit eb4a46b4 by Torkel Ödegaard

Merge pull request #4220 from mtanda/issue_1419

Align auto refresh interval
parents 7df32608 fa0b06ac
......@@ -69,7 +69,11 @@ define([
this.dashboard.refresh = interval;
if (interval) {
var _i = kbn.interval_to_ms(interval);
this.start_scheduled_refresh(_i);
var wait_ms = _i - (Date.now() % _i);
$timeout(function () {
self.start_scheduled_refresh(_i);
self.refreshDashboard();
}, wait_ms);
} else {
this.cancel_scheduled_refresh();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment