]> www.vanbest.org Git - motioneye-debian/commitdiff
fixed floating framerate config bug
authorCalin Crisan <ccrisan@gmail.com>
Sat, 8 Mar 2014 14:18:06 +0000 (16:18 +0200)
committerCalin Crisan <ccrisan@gmail.com>
Sat, 8 Mar 2014 14:18:06 +0000 (16:18 +0200)
src/config.py
static/js/main.js

index 99b42332cd4db249d78044e0371355d7a8359d10..b4ea82ee0d45c816663e75334c666d3db73c5b61 100644 (file)
@@ -462,7 +462,7 @@ def camera_ui_to_dict(ui):
         
     width = int(ui['resolution'].split('x')[0])
     height = int(ui['resolution'].split('x')[1])
-    threshold = int(ui['frame_change_threshold']) * width * height / 100
+    threshold = int(float(ui['frame_change_threshold']) * width * height / 100)
 
     data = {
         # device
index 8ce14e9b6ecbd53934ea876a7bc7b8b49018e066..fc033dbb1b9ac53331d2b63c377020923e05e5f8 100644 (file)
@@ -165,7 +165,7 @@ function initUI() {
     makeSlider($('#contrastSlider'), 0, 100, 2, null, 5, 0, '%');
     makeSlider($('#saturationSlider'), 0, 100, 2, null, 5, 0, '%');
     makeSlider($('#hueSlider'), 0, 100, 2, null, 5, 0, '%');
-    makeSlider($('#framerateSlider'), 1, 30, 0, [
+    makeSlider($('#framerateSlider'), 2, 30, 0, [
         {value: 1, label: '1'},
         {value: 5, label: '5'},
         {value: 10, label: '10'},