Sha256: 058fa1d2be64078c76696bb59efc7040daf31bd13793adf99ec9518d9bde15c3

Contents?: true

Size: 1.01 KB

Versions: 16

Compression:

Stored size: 1.01 KB

Contents

-# coding: utf-8
- 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


.navbar-header

  %h1
    = APP_NAME
    %small
      = "v#{APP_VER} [#{Settings.namespace}]"


.header-indicators.navbar-header.pull-right

  .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-success Processed
    .btn.btn-default= info_processed.to_i

  .btn-group.btn-group-sm
    .btn.btn-default.btn-success Transferred
    .btn.btn-default= Helpers.format_bytes(trans, "B", 1)


Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rest-ftp-daemon-0.247.1 lib/rest-ftp-daemon/views/dashboard_header.haml
rest-ftp-daemon-0.247.0 lib/rest-ftp-daemon/views/dashboard_header.haml
rest-ftp-daemon-0.246.1 lib/rest-ftp-daemon/views/dashboard_header.haml
rest-ftp-daemon-0.246.0 lib/rest-ftp-daemon/views/dashboard_header.haml
rest-ftp-daemon-0.245.1 lib/rest-ftp-daemon/views/dashboard_header.haml
rest-ftp-daemon-0.245 lib/rest-ftp-daemon/views/dashboard_header.haml
rest-ftp-daemon-0.243.2 lib/rest-ftp-daemon/views/dashboard_header.haml
rest-ftp-daemon-0.243.1 lib/rest-ftp-daemon/views/dashboard_header.haml
rest-ftp-daemon-0.243 lib/rest-ftp-daemon/views/dashboard_header.haml
rest-ftp-daemon-0.242.5 lib/rest-ftp-daemon/views/dashboard_header.haml
rest-ftp-daemon-0.242.4 lib/rest-ftp-daemon/views/dashboard_header.haml
rest-ftp-daemon-0.242.3 lib/rest-ftp-daemon/views/dashboard_header.haml
rest-ftp-daemon-0.242.2 lib/rest-ftp-daemon/views/dashboard_header.haml
rest-ftp-daemon-0.242.1 lib/rest-ftp-daemon/views/dashboard_header.haml
rest-ftp-daemon-0.242.0 lib/rest-ftp-daemon/views/dashboard_header.haml
rest-ftp-daemon-0.241 lib/rest-ftp-daemon/views/dashboard_header.haml