From 0e30344f1eedae78a4315c6156c49a674dd3ecc5 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 17 Jun 2011 18:32:10 +0100 Subject: A couple more fixes. --- lib/mauve/web_interface.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/mauve') diff --git a/lib/mauve/web_interface.rb b/lib/mauve/web_interface.rb index 520f344..de12291 100644 --- a/lib/mauve/web_interface.rb +++ b/lib/mauve/web_interface.rb @@ -231,6 +231,7 @@ EOF # # Sanitise parameters # + n_hours = ( n_hours > 300 ? 300 : n_hours ) type_hours = "daytime" unless %w(daytime working wallclock).include?(type_hours) ack_until = Time.now.in_x_hours(n_hours, type_hours) -- cgit v1.2.1