about summary refs log tree commit homepage
path: root/lib/yahns/fdmap.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yahns/fdmap.rb')
-rw-r--r--lib/yahns/fdmap.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/yahns/fdmap.rb b/lib/yahns/fdmap.rb
index 0272421..1e1677a 100644
--- a/lib/yahns/fdmap.rb
+++ b/lib/yahns/fdmap.rb
@@ -12,8 +12,8 @@ class Yahns::Fdmap # :nodoc:
 
     if Float === client_expire_threshold
       client_expire_threshold *= Process.getrlimit(:NOFILE)[0]
-    elsif client_expire_treshhold < 0
-      client_expire_threshold = Process.getrlimit(:NOFILE)[0] -
+    elsif client_expire_threshold < 0
+      client_expire_threshold = Process.getrlimit(:NOFILE)[0] +
                                 client_expire_threshold
     end
     @client_expire_threshold = client_expire_threshold.to_i