summaryrefslogtreecommitdiffstats
path: root/public/client.js
diff options
context:
space:
mode:
authortunkki <tunkki@tunkkikone>2016-08-14 17:47:01 +0300
committertunkki <tunkki@tunkkikone>2016-08-14 17:47:01 +0300
commit33f3d9b7a8183949a06adffcd8f11485bc6f5cce (patch)
tree55508980e027458ca2f437a117be22f48784f472 /public/client.js
parentd84a59f489b7994630a1c4c94befcc7d63f08f6c (diff)
Change update interval to 60 seconds
Diffstat (limited to 'public/client.js')
-rw-r--r--public/client.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/public/client.js b/public/client.js
index 4b946f5..6461502 100644
--- a/public/client.js
+++ b/public/client.js
@@ -1,5 +1,7 @@
var statusapp = angular.module('status-app', []);
+var UPDATE_INTERVAL = 60000;
+
statusapp.controller('status-controller', ['$scope', '$http', function status_controller($scope, $http) {
$scope.systems = [];
@@ -14,6 +16,6 @@ statusapp.controller('status-controller', ['$scope', '$http', function status_co
});
};
- setInterval(update, 5000);
+ setInterval(update, UPDATE_INTERVAL);
update();
}]);