Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Commit

Permalink
Fix interval
Browse files Browse the repository at this point in the history
Moved it down to 5000 for testing, forgot about it. 30 second interval is reasonable but perhaps this should be added to a config menu. Updates #13
  • Loading branch information
Andrew Letson committed Feb 9, 2016
1 parent 268a0f5 commit b34a941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ <h4 class="modal-title" id="Settings">Settings</h4>
filterHostsAndOutput(hosts);

//TODO fix this. If the next API call starts before the last one finishes, the dashboard explodes and it's not pretty.
setInterval(function() { var hosts = getHostsFromZabbix(zabbix); filterHostsAndOutput(hosts); }, 5000);
setInterval(function() { var hosts = getHostsFromZabbix(zabbix); filterHostsAndOutput(hosts); }, 30000);

});

Expand Down

1 comment on commit b34a941

@aletson
Copy link
Owner

@aletson aletson commented on b34a941 Feb 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already actually mentioned in that issue!

Please sign in to comment.