diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-06-17 18:32:10 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-06-17 18:32:10 +0100 |
commit | 0e30344f1eedae78a4315c6156c49a674dd3ecc5 (patch) | |
tree | af8c749badbfb2ed97c33b484633b82e7914c1fb /lib | |
parent | fd8256beea549a1650cd8fbe1f1d79c7b08a0772 (diff) |
A couple more fixes.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mauve/web_interface.rb | 1 |
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) |