summaryrefslogtreecommitdiff
path: root/www/js/DevOptionsCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-09-04 09:43:09 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-09-04 09:43:09 -0400
commit1649d8a03c8fdd8d9e9491e5c06233f4c15f35a0 (patch)
treefedc2bfa5d7f938b3be4e837022e0034f124c292 /www/js/DevOptionsCtrl.js
parent3e011566d57ada671534906cd080ad59294f0b53 (diff)
#319 - you can now cycle monitors. Time Interval can be specified in developer settings.
Former-commit-id: 401b429cdd914fab7f6399551e4bc9083e803c0b
Diffstat (limited to 'www/js/DevOptionsCtrl.js')
-rw-r--r--www/js/DevOptionsCtrl.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/www/js/DevOptionsCtrl.js b/www/js/DevOptionsCtrl.js
index a4b8d002..7ca09068 100644
--- a/www/js/DevOptionsCtrl.js
+++ b/www/js/DevOptionsCtrl.js
@@ -62,7 +62,10 @@ angular.module('zmApp.controllers').controller('zmApp.DevOptionsCtrl', ['$scope'
NVRDataModel.debug("SaveDevOptions: called");
-
+ if (parseInt($scope.loginData.cycleMonitorsInterval) < zm.minCycleTime)
+ {
+ $scope.loginData.cycleMonitorsInterval = zm.minCycleTime.toString();
+ }
if ((parseInt($scope.loginData.maxFPS) < 0) || (parseInt($scope.loginData.maxFPS) > zm.maxFPS)) {
$scope.loginData.maxFPS = zm.defaultFPS.toString();
}