lib/zold/commands/routines/gc.rb in zold-0.18.6 vs lib/zold/commands/routines/gc.rb in zold-0.18.7
- old
+ new
@@ -49,10 +49,10 @@
seen += 1
next unless @wallets.acq(id) { |w| w.exists? && w.txns.empty? && w.mtime < Time.now - @opts['gc-age'] }
cmd.run(args + [id.to_s])
removed += 1
end
- @log.info("Removed #{removed} empty+old wallets out of #{seen} total")
+ @log.info("Removed #{removed} empty+old wallets out of #{seen} total") unless removed.zero?
end
end
end
end