diff --git a/lib/god/system/slash_proc_poller.rb b/lib/god/system/slash_proc_poller.rb index 59693cf9..e5eaa901 100644 --- a/lib/god/system/slash_proc_poller.rb +++ b/lib/god/system/slash_proc_poller.rb @@ -61,7 +61,7 @@ def percent_cpu # read from them. Try to use this sparingly as it is expensive. def self.readable?(path) begin - timeout(1) { File.read(path) } + Timeout.timeout(1) { File.read(path) } rescue Timeout::Error false end