lib/zold/node/front.rb in zold-0.22.3 vs lib/zold/node/front.rb in zold-0.22.4
- old
+ new
@@ -244,10 +244,11 @@
alias: settings.node_alias,
protocol: settings.protocol,
id: wallet.id.to_s,
score: score.to_h,
mtime: wallet.mtime.utc.iso8601,
+ age: wallet.age.to_s,
size: wallet.size,
digest: wallet.digest,
copies: Copies.new(File.join(settings.copies, wallet.id)).all.count,
balance: wallet.balance.to_i,
txns: wallet.txns.count,
@@ -452,10 +453,10 @@
def total_mem
settings.zache.get(:total_mem, lifetime: settings.opts['no-cache'] ? 0 : 60) do
Total::Mem.new.bytes
rescue Total::CantDetect => e
- @log.error(e.message)
+ settings.log.error(e.message)
0
end
end
def total_wallets