Class: Zold::Routines::Audit
- Inherits:
-
Object
- Object
- Zold::Routines::Audit
- Defined in:
- lib/zold/commands/routines/audit.rb
Overview
Audit the system
Instance Method Summary collapse
- #exec(_ = 0) ⇒ Object
-
#initialize(opts, wallets, log: Log::NULL) ⇒ Audit
constructor
A new instance of Audit.
Constructor Details
Instance Method Details
#exec(_ = 0) ⇒ Object
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/zold/commands/routines/audit.rb', line 41 def exec(_ = 0) sleep(60) unless @opts['routine-immediately'] @log.info( 'Audit: ' + [ "memory used: #{Size.new(GetProcessMem.new.bytes.to_i)}", "threads total: #{Thread.list.count}", "wallets: #{@wallets.count}" ].join('; ') ) end |