mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Change timers for ajax
This commit is contained in:
parent
a2d1314a75
commit
a4fffee182
3 changed files with 14 additions and 7 deletions
|
@ -1000,7 +1000,17 @@
|
|||
netChart[data.netdata[j].dev].update();
|
||||
}
|
||||
});
|
||||
}, 6000);
|
||||
}, 10000);
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
window.setInterval(function get_status() {
|
||||
var status = {{ status }};
|
||||
$.getJSON('{% url 'inst_status' compute_id vname %}', function (data) {
|
||||
if (data['status'] != status) {
|
||||
window.location.reload()
|
||||
}
|
||||
})
|
||||
}, 2000);
|
||||
</script>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue