Skip to content

Commit e7d080a

Browse files
committed
Increase load interval to 5 seconds
1 parent a9692d1 commit e7d080a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/client/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ client.init = function init (callback) {
6464
}).done(function success (serverSettings) {
6565
if (serverSettings.runtimeState !== 'loaded') {
6666
console.log('Server is still loading data');
67-
$('#loadingMessageText').html('Server is loading data, retrying load in 2 seconds');
68-
window.setTimeout(window.Nightscout.client.init(), 2000);
67+
$('#loadingMessageText').html('Server is starting and still loading data, retrying load in 5 seconds');
68+
window.setTimeout(window.Nightscout.client.init(), 5000);
6969
return;
7070
}
7171
client.settingsFailed = false;
@@ -77,8 +77,8 @@ client.init = function init (callback) {
7777
// check if we couldn't reach the server at all, show offline message
7878
if (!jqXHR.readyState) {
7979
console.log('Application appears to be OFFLINE');
80-
$('#loadingMessageText').html('Connecting to Nightscout server failed, retrying every 2 seconds');
81-
window.setTimeout(window.Nightscout.client.init(), 2000);
80+
$('#loadingMessageText').html('Connecting to Nightscout server failed, retrying every 5 seconds');
81+
window.setTimeout(window.Nightscout.client.init(), 5000);
8282
return;
8383
}
8484

0 commit comments

Comments
 (0)