aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/web_interface.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-06-17 17:31:10 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-06-17 17:31:10 +0100
commit0b83323a3bccff72da4aadd8f38d0305a5fdcca4 (patch)
treefbeaa85359183885261aacff56a65aa006c472dd /lib/mauve/web_interface.rb
parenta2fc458d4c1bc6027760546653cb153e775576ce (diff)
* Bytemark auth fixed.
* Some hot fixes.
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