Sha256: 1cfab6f9f92aa332737a29701949e7b2f62e9c47ba277150ebb65583998aca0a
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
- trans = $queue.counter_get :transferred - info_procs = (Facter.value :processorcount).to_i - info_load = Sys::CPU.load_avg.first.to_f - info_norm = info_procs.zero? ? "N/A" : (100 * info_load / info_procs).round(1) - info_processed = $queue.counter_get(:jobs_processed) - mem = GetProcessMem.new .btn-group.btn-group-sm .btn.btn-default.btn-success Host .btn.btn-default= Settings.host .btn-group.btn-group-sm .btn.btn-default.btn-success IP .btn.btn-default= Facter.value(:ipaddress) .btn-group.btn-group-sm .btn.btn-default.btn-success Cores .btn.btn-default= info_procs .btn-group.btn-group-sm .btn.btn-default.btn-warning Load .btn.btn-default= info_load.round(1) .btn-group.btn-group-sm .btn.btn-default.btn-warning CPU .btn.btn-default= "#{info_norm} %" .btn-group.btn-group-sm .btn.btn-default.btn-warning Mem .btn.btn-default= Helpers.format_bytes(mem.bytes, "B") .btn-group.btn-group-sm .btn.btn-default.btn-info Processed .btn.btn-default= Helpers.format_bytes(info_processed) .btn-group.btn-group-sm .btn.btn-default.btn-info Transferred .btn.btn-default= Helpers.format_bytes(trans, "B")
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rest-ftp-daemon-0.212.0 | lib/rest-ftp-daemon/views/dashboard_headers.haml |