From 7e78f17de6cab1644a9c42bf342fdd22616a9171 Mon Sep 17 00:00:00 2001 From: Nikhil Bhavsar Date: Fri, 29 Mar 2024 18:35:40 +0530 Subject: [PATCH] timeout error fixed --- lib/god/system/slash_proc_poller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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