diff --git a/templates/instance.html b/templates/instance.html
index e5f800c..8dc567e 100644
--- a/templates/instance.html
+++ b/templates/instance.html
@@ -1000,7 +1000,17 @@
netChart[data.netdata[j].dev].update();
}
});
- }, 6000);
+ }, 10000);
});
+
{% endblock %}
\ No newline at end of file
diff --git a/templates/overview.html b/templates/overview.html
index afc110b..e156c1c 100644
--- a/templates/overview.html
+++ b/templates/overview.html
@@ -133,7 +133,7 @@
responsive: true
});
- function graph_usage() {
+ window.setInterval(function graph_usage() {
$.getJSON('{% url 'compute_graph' compute_id %}', function (data) {
cpuChart.scale.xLabels = data.timeline;
memChart.scale.xLabels = data.timeline;
@@ -144,10 +144,6 @@
cpuChart.update();
memChart.update();
});
- }
-
- $(function () {
- window.setInterval(graph_usage(), 4000);
- });
+ }, 5000);
{% endblock %}
\ No newline at end of file
diff --git a/webvirtcloud/urls.py b/webvirtcloud/urls.py
index d4ca5f2..f9d07f2 100644
--- a/webvirtcloud/urls.py
+++ b/webvirtcloud/urls.py
@@ -13,6 +13,7 @@ urlpatterns = patterns('',
url(r'^instance/(\d+)/([\w\-\.]+)/$', 'instances.views.instance', name='instance'),
url(r'^instance/statistics/(\d+)/([\w\-\.]+)/$', 'instances.views.inst_graph', name='inst_graph'),
+ url(r'^instance/status/(\d+)/([\w\-\.]+)/$', 'instances.views.inst_status', name='inst_status'),
url(r'^computes/$', 'computes.views.computes', name='computes'),
url(r'^compute/overview/(\d+)/$', 'computes.views.overview', name='overview'),