summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorKevin Bracey <kevin@bracey.fi>2022-01-09 13:27:52 +0200
committerIvan Shapovalov <intelfx@intelfx.name>2023-10-26 03:14:33 +0400
commit69a505d69cb69018b1581103e0dcbab5f7a0d6b1 (patch)
tree0353879bf12086f2bccde9140aa08a4d1966f186 /Action.c
parent09934e6630621f05e8c339c0633ef9eb24f1fc2c (diff)
Move shared memory next to used memory
Shared memory is less available than buffers, so move it left next to used memory. This is in preparation for including shared memory in the basic "in use" for the bar text. It would not make sense to sum a discontiguous region.
Diffstat (limited to 'Action.c')
-rw-r--r--Action.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Action.c b/Action.c
index 2fd0be76..698b1525 100644
--- a/Action.c
+++ b/Action.c
@@ -733,9 +733,9 @@ static Htop_Reaction actionHelp(State* st) {
mvaddstr(line++, 0, "Memory bar: ");
addattrstr(CRT_colors[BAR_BORDER], "[");
addbartext(CRT_colors[MEMORY_USED], "", "used");
- addbartext(CRT_colors[MEMORY_BUFFERS_TEXT], "/", "buffers");
addbartext(CRT_colors[MEMORY_SHARED], "/", "shared");
addbartext(CRT_colors[MEMORY_COMPRESSED], "/", "compressed");
+ addbartext(CRT_colors[MEMORY_BUFFERS_TEXT], "/", "buffers");
addbartext(CRT_colors[MEMORY_CACHE], "/", "cache");
addbartext(CRT_colors[BAR_SHADOW], " ", "used");
addbartext(CRT_colors[BAR_SHADOW], "/", "total");

© 2014-2024 Faster IT GmbH | imprint | privacy policy