Skip to content

Commit b838a96

Browse files
committed
Uses timeout from Timeout.timeout instead from Object
Fixes issue mojombo#262
1 parent 92c06aa commit b838a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/god/system/slash_proc_poller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def percent_cpu
6161
# read from them. Try to use this sparingly as it is expensive.
6262
def self.readable?(path)
6363
begin
64-
timeout(1) { File.read(path) }
64+
Timeout.timeout(1) { File.read(path) }
6565
rescue Timeout::Error
6666
false
6767
end

0 commit comments

Comments
 (0)