We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92c06aa commit b838a96Copy full SHA for b838a96
lib/god/system/slash_proc_poller.rb
@@ -61,7 +61,7 @@ def percent_cpu
61
# read from them. Try to use this sparingly as it is expensive.
62
def self.readable?(path)
63
begin
64
- timeout(1) { File.read(path) }
+ Timeout.timeout(1) { File.read(path) }
65
rescue Timeout::Error
66
false
67
end
0 commit comments