aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-06-17 18:32:10 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-06-17 18:32:10 +0100
commit0e30344f1eedae78a4315c6156c49a674dd3ecc5 (patch)
treeaf8c749badbfb2ed97c33b484633b82e7914c1fb /lib/mauve
parentfd8256beea549a1650cd8fbe1f1d79c7b08a0772 (diff)
A couple more fixes.
Diffstat (limited to 'lib/mauve')
-rw-r--r--lib/mauve/web_interface.rb1
1 files changed, 1 insertions, 0 deletions
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)