bottom icon indicating copy to clipboard operation
bottom copied to clipboard

Added possibility to use "--change_memory_prefix"

Open GrecuAlexandru opened this issue 2 years ago • 3 comments

Description

A description of the change, what it does, and why it was made. If relevant (such as any change that modifies the UI), please provide screenshots of the changes: Added possibility to use "--change_memory_prefix" flag to see the RAM memory in one of the following prefixes: KiB, MiB, GiB, TiB. You can either pass one of those or "auto" which was the default setting.

Issue

If applicable, what issue does this address? Added the request provided here: https://github.com/ClementTsang/bottom/discussions/695 and https://github.com/ClementTsang/bottom/issues/696

Testing

If relevant, please state how this was tested. All changes must be tested to work:

If this is a code change, please also indicate which platforms were tested:

  • [x] Windows
  • [ ] macOS
  • [ ] Linux

Checklist

If relevant, ensure the following have been met:

  • [x] Areas your change affects have been linted using rustfmt (cargo fmt)
  • [ ] The change has been tested and doesn't appear to cause any unintended breakage
  • [x] Documentation has been added/updated if needed (README.md, help menu, doc pages, etc.)
  • [ ] The pull request passes the provided CI pipeline
  • [x] There are no merge conflicts
  • [ ] If relevant, new tests were added (don't worry too much about coverage)

GrecuAlexandru avatar Jan 08 '24 12:01 GrecuAlexandru

Codecov Report

Attention: 36 lines in your changes are missing coverage. Please review.

Comparison is base (0f969fc) 32.37% compared to head (1c2a7d0) 32.36%. Report is 17 commits behind head on main.

:exclamation: Current head 1c2a7d0 differs from pull request most recent head f14993a. Consider uploading reports for the commit f14993a to get more accurate results

Files Patch % Lines
src/bin/main.rs 0.00% 16 Missing :warning:
src/data_conversion.rs 0.00% 16 Missing :warning:
src/data_collection.rs 0.00% 4 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1375      +/-   ##
==========================================
- Coverage   32.37%   32.36%   -0.02%     
==========================================
  Files          98       98              
  Lines       17227    17258      +31     
==========================================
+ Hits         5577     5585       +8     
- Misses      11650    11673      +23     
Flag Coverage Δ
macos-12 34.20% <18.18%> (-0.02%) :arrow_down:
ubuntu-latest 33.93% <18.18%> (-0.02%) :arrow_down:
windows-2019 34.25% <18.18%> (-0.02%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Jan 08 '24 13:01 codecov[bot]

Hm, not sure if I prefer it as a single flag for only mega, it would probably make more sense IMO to take an argument with the value being the unit (e.g. MiB, KB, etc.).

ClementTsang avatar Jan 10 '24 23:01 ClementTsang

Shoot, didn't notice the updates to this PR - I can rebase and review in a bit.

ClementTsang avatar Apr 03 '24 02:04 ClementTsang