diff options
Diffstat (limited to 'public')
| -rw-r--r-- | public/client.js | 4 |
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(); }]); |
