change fetch_updates to create less load
This commit is contained in:
parent
105d18692b
commit
95def7bfb9
1 changed files with 2 additions and 2 deletions
|
@ -1218,11 +1218,11 @@ c3nav = {
|
|||
},
|
||||
|
||||
schedule_fetch_updates: function (timeout) {
|
||||
window.setTimeout(c3nav.fetch_updates, timeout || 16000);
|
||||
window.setTimeout(c3nav.fetch_updates, timeout || 20000);
|
||||
},
|
||||
fetch_updates: function () {
|
||||
$.get('/api/updates/fetch/', c3nav._fetch_updates_callback).fail(function() {
|
||||
c3nav.schedule_fetch_updates(1000);
|
||||
c3nav.schedule_fetch_updates(15000);
|
||||
});
|
||||
},
|
||||
_fetch_updates_callback: function (data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue