Skip to content

Commit

Permalink
Limit interval in switch port activity to 10000
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Feb 19, 2025
1 parent 199f130 commit 3da46f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/3242.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Limit interval in switch port activity to 10000
2 changes: 1 addition & 1 deletion python/nav/web/ipdevinfo/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, *args, **kwargs):
class ActivityIntervalForm(forms.Form):
"""Form for setting an interval in switch port activity"""

interval = forms.IntegerField(label='Days', min_value=0)
interval = forms.IntegerField(label='Days', min_value=0, max_value=10000)

def __init__(self, *args, **kwargs):
super(ActivityIntervalForm, self).__init__(*args, **kwargs)
Expand Down

0 comments on commit 3da46f3

Please sign in to comment.