From 0b83323a3bccff72da4aadd8f38d0305a5fdcca4 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 17 Jun 2011 17:31:10 +0100 Subject: * Bytemark auth fixed. * Some hot fixes. --- lib/mauve/web_interface.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/mauve/web_interface.rb') 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 -- cgit v1.2.1