aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/web_interface.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/web_interface.rb')
-rw-r--r--lib/mauve/web_interface.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mauve/web_interface.rb b/lib/mauve/web_interface.rb
index 2610fc9..520f344 100644
--- a/lib/mauve/web_interface.rb
+++ b/lib/mauve/web_interface.rb
@@ -186,6 +186,8 @@ EOF
type_hours = params[:type_hours] || "daylight"
alerts = params[:alerts] || []
+ n_hours = (n_hours > 188 ? 188 : n_hours)
+
if ack_until.to_s.empty?
ack_until = Time.now.in_x_hours(n_hours.to_i, type_hours.to_s)
else