Skip to content

MemoryMeter: show shared memory before cached#566

Merged
fasterit merged 1 commit intohtop-dev:masterfrom
cgzones:shared_before_cached
Mar 19, 2021
Merged

MemoryMeter: show shared memory before cached#566
fasterit merged 1 commit intohtop-dev:masterfrom
cgzones:shared_before_cached

Conversation

@cgzones
Copy link
Copy Markdown
Member

@cgzones cgzones commented Mar 17, 2021

Shared memory is less free-able than cached memory.

Show it beforehand.

Follow up of: #558

Shared memory is less free-able than cached memory.

Show it beforehand.
Copy link
Copy Markdown
Member

@natoscott natoscott left a comment

Choose a reason for hiding this comment

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

LGTM too - one thing maybe for the future, it would be nice to change those hard coded values array offsets to something symbolic (enum) ... then the code would describe itself, and the new comments here (and commented-out code lines) wouldn't be needed here.

Obviously, doing this affects alot of meters though.

@fasterit fasterit merged commit 67b815a into htop-dev:master Mar 19, 2021
@cgzones cgzones deleted the shared_before_cached branch March 19, 2021 13:41
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.

4 participants