Skip to content

Commit

Permalink
Fix rounding issue when reading config parameter value
Browse files Browse the repository at this point in the history
  • Loading branch information
zagrim committed Dec 7, 2024
1 parent 25ae737 commit 1518046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion motioneye/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@ def motion_camera_dict_to_ui(data):
'auto_noise_detect': data['noise_tune'],
'max_frame_change_threshold': data['threshold_maximum'],
'auto_threshold_tuning': data['threshold_tune'],
'noise_level': int(int(data['noise_level']) / 2.55),
'noise_level': round(int(data['noise_level']) / 2.55),
'light_switch_detect': data['lightswitch_percent'],
'despeckle_filter': data['despeckle_filter'],
'event_gap': int(data['event_gap']),
Expand Down

0 comments on commit 1518046

Please sign in to comment.