Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust column widths, shorten units. #1117

Merged
merged 6 commits into from
Jun 20, 2024
Merged

Conversation

petersilva
Copy link
Contributor

make it have consistent columns in max situations:

  • establish with of name field by finding the longest flow name.
  • lastTransmit display adjusted: >9999 if that big, and no decimals if over 100. so it fits in 5 spaces in all
  • change all the units to be shorter: Bytes->B, Msgs->m, Files->f.

host% sr3 status
status:
Component/Config         Processes   Connection        Lag                              Rates
                         State   Run Retry  msg data   Que   LagMax   LagAvg  Last  %rej     pubsub   messages     RxData     TxData
                         -----   --- -----  --- ----   ---   ------   ------  ----  ----     ------   --------     ------     ------
cpost/pelle_dd1_f04      stop    0/0     0   0%   0%     0    0.00s    0.00s     0  0.0%      0 B/s      0 m/s      0 B/s      0 B/s
cpost/pelle_dd2_f05      stop    0/0     0   0%   0%     0    0.00s    0.00s     0  0.0%      0 B/s      0 m/s      0 B/s      0 B/s
cpost/veille_f34         idle    1/1     0 100%   0%     0    0.00s    0.00s   n/a  0.0%      0 B/s      0 m/s      0 B/s      0 B/s
cpump/xvan_f14           idle    1/1     0 100%   0%     0    0.00s    0.00s   n/a  0.0%      0 B/s      0 m/s      0 B/s      0 B/s
cpump/xvan_f15           idle    1/1     0 100%   0%     0    0.00s    0.00s   n/a  0.0%      0 B/s      0 m/s      0 B/s      0 B/s
poll/sftp_f62            idle    1/1     0 100%   0%     0    0.00s    0.00s   n/a  0.0%      0 B/s      0 m/s      0 B/s      0 B/s
poll/sftp_f63            wVip    1/1     0 100%   0%     0    0.00s    0.00s   n/a  0.0%      0 B/s      0 m/s      0 B/s      0 B/s
post/shim_f63            stop    0/0          -          -         -     -     -          -        -          -          -          -
post/t_dd1_f00           stop    0/0     0 100%   0%     0   12.53s    6.98s 23.4s  0.0% 12.0 KiB/s      0 m/s      0 B/s      0 B/s
post/t_dd2_f00           stop    0/0     0 100%   0%     0   12.80s    7.10s 23.1s  0.0% 12.2 KiB/s      0 m/s      0 B/s      0 B/s
post/test2_f61           stop    0/0     0 100%   0%     0    0.58s    0.55s 6.77s  0.0%  1.7 KiB/s      0 m/s      0 B/s      0 B/s
report/tsarra_f20        idle    1/1     0 100%   0%     0    0.00s    0.00s   n/a  0.0%      0 B/s      0 m/s      0 B/s      0 B/s
sarra/download_f20       run     1/1     0 100%  87%     0   23.02s   14.33s 13.1s 50.0% 47.7 KiB/s     75 m/s 44.1 KiB/s      0 B/s
sender/tsource2send_f50  run     1/1     0 100%  85%     0    8.44s    4.33s 2.46s  0.0% 109.7 KiB/s     37 m/s      0 B/s 44.0 KiB/s
shovel/rabbitmqtt_f22    run     1/1     0 100%   0%     0    3.92s    2.50s 8.25s  0.0% 109.7 KiB/s     37 m/s      0 B/s      0 B/s
subscribe/amqp_f30       run     1/1     0 100%  82%     0   23.10s   14.58s 12.9s  0.0% 15.5 KiB/s     37 m/s 44.0 KiB/s      0 B/s
subscribe/cdnld_f21      run     1/1     0 100%  82%   145   13.48s    8.48s 23.3s  0.1% 16.5 KiB/s     46 m/s 44.1 KiB/s      0 B/s
subscribe/cfile_f44      run     1/1     0 100%  84%     1    1.81s    0.87s 21.8s  0.0% 15.9 KiB/s     40 m/s 43.9 KiB/s      0 B/s
subscribe/cp_f61         run     1/1     0 100%  57%     0    9.46s    5.82s 4.76s  0.0% 39.0 KiB/s     33 m/s 16.1 KiB/s      0 B/s
subscribe/ftp_f70        run     1/1     0 100%  53%     0    6.89s    3.61s 6.28s  0.0%  7.3 KiB/s     14 m/s 11.3 KiB/s      0 B/s
subscribe/mirror_f80     run     1/1     0 100%  65%     0    2.64s    1.40s 1.58s  0.0% 15.9 KiB/s     40 m/s 26.3 KiB/s      0 B/s
subscribe/q_f71          cpuS    5/5     0 100%  13%     0    3.74s    1.95s 1.54s  0.0%  3.3 KiB/s      8 m/s 10.3 KiB/s      0 B/s
subscribe/rabbitmqtt_f31 run     1/1     0 100%  47%     0    4.19s    2.90s 11.7s  0.0% 31.6 KiB/s     31 m/s 16.1 KiB/s      0 B/s
subscribe/u_sftp_f60     run     1/1     0 100%  59%     0    9.48s    5.85s 3.71s  0.0% 41.5 KiB/s     34 m/s 16.1 KiB/s      0 B/s
watch/f40                run     1/1     0 100%   0%     0    1.53s    0.45s 8.68s  0.0% 55.5 KiB/s      0 m/s      0 B/s      0 B/s
      Total Running Configs:  19 ( Processes: 23 missing: 0 stray: 0 )
                     Memory: uss:865.7 MiB rss:1.2 GiB vms:3.0 GiB
                   CPU Time: User:65.70s System:12.13s
           Pub/Sub Received: 461 m/s (543.3 KiB/s), Sent:  212 m/s (205.8 KiB/s) Queued: 146 Retry: 0, Mean lag: 5.53s
              Data Received: 274 f/s (309.0 KiB/s), Sent: 37 f/s (44.0 KiB/s)
host%

@petersilva petersilva marked this pull request as ready for review June 20, 2024 14:46
Copy link

Test Results

244 tests   243 ✅  59s ⏱️
  1 suites    1 💤
  1 files      0 ❌

Results for commit 2f9be29.

Copy link
Member

@andreleblanc11 andreleblanc11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are all good changes

The flow tests are failing, but it's complaining about a 'missing Sarra C package' so likely unrelated

@petersilva petersilva merged commit 1589bfb into development Jun 20, 2024
2 of 35 checks passed
@petersilva petersilva deleted the adjust_column_widths branch August 9, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants