Do an initial data fetch immediately (useful if the refresh interval is long).

This commit is contained in:
Oliver Jowett 2015-02-11 00:15:21 +00:00
parent 849697f84c
commit 2ba56231a6

View file

@ -291,6 +291,9 @@ function end_load_history() {
window.setInterval(fetchData, RefreshInterval); window.setInterval(fetchData, RefreshInterval);
window.setInterval(reaper, 60000); window.setInterval(reaper, 60000);
// And kick off one refresh immediately.
fetchData();
} }
// Initalizes the map and starts up our timers to call various functions // Initalizes the map and starts up our timers to call various functions