lib/zold/node/front.rb in zold-0.11.5 vs lib/zold/node/front.rb in zold-0.11.6
- old
+ new
@@ -88,10 +88,14 @@
get '/robots.txt' do
'User-agent: *'
end
+ get '/v' do
+ VERSION
+ end
+
get '/favicon.ico' do
if score.value >= 16
redirect 'https://www.zold.io/images/logo-green.png'
elsif score.value >= 4
redirect 'https://www.zold.io/images/logo-orange.png'
@@ -106,10 +110,10 @@
version: VERSION,
score: score.to_h,
pid: Process.pid,
cpus: Concurrent.processor_count,
uptime: `uptime`.strip,
- threads: Thread.list.select { |t| t.status == 'run' }.count,
+ threads: "#{Thread.list.select { |t| t.status == 'run' }.count}/#{Thread.list.count}",
wallets: settings.wallets.all.count,
remotes: settings.remotes.all.count,
farm: settings.farm.to_json,
date: `date --iso-8601=seconds -u`.strip,
hours_alive: ((Time.now - settings.start) / (60 * 60)).round(2),