From 9e18554e72817e7a6a3283ac84ac77c28512e9e9 Mon Sep 17 00:00:00 2001 From: davvd Date: Thu, 30 Nov 2023 07:55:35 +0300 Subject: [PATCH] #819 usagewatch off --- lib/zold/node/front.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/zold/node/front.rb b/lib/zold/node/front.rb index 159da8c8..715cb10d 100755 --- a/lib/zold/node/front.rb +++ b/lib/zold/node/front.rb @@ -228,8 +228,10 @@ class Front < Sinatra::Base end, platform: RUBY_PLATFORM, load: settings.zache.get(:load, lifetime: settings.opts['no-cache'] ? 0 : 60) do - require 'usagewatch_ext' - Object.const_defined?('Usagewatch') ? Usagewatch.uw_load.to_f : 0.0 + # doesn't work with Ruby 3.0+ + # require 'usagewatch_ext' + # Object.const_defined?('Usagewatch') ? Usagewatch.uw_load.to_f : 0.0 + 0.0 end, total_mem: total_mem, threads: "#{Thread.list.select { |t| t.status == 'run' }.count}/#{Thread.list.count}",