summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-11-20 17:09:34 +0100
committerBenBE <BenBE@geshi.org>2020-11-21 19:39:45 +0100
commitfa002c0ba95929bef65df57a33471682666b46ba (patch)
treef47272951cd6c75be81fdf61c501c14871ef6471 /linux
parent3e5cba91ce3c7661e5b6406b1840cdc27d397dc1 (diff)
Rename virtual memory column from M_SIZE to M_VIRT
Closes: #325
Diffstat (limited to 'linux')
-rw-r--r--linux/LinuxProcess.c2
-rw-r--r--linux/LinuxProcessList.c2
-rw-r--r--linux/Platform.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c
index c75291ce..6bed3322 100644
--- a/linux/LinuxProcess.c
+++ b/linux/LinuxProcess.c
@@ -65,7 +65,7 @@ ProcessFieldData Process_fields[] = {
[CNSWAP] = { .name = "CNSWAP", .title = NULL, .description = NULL, .flags = 0, },
[EXIT_SIGNAL] = { .name = "EXIT_SIGNAL", .title = NULL, .description = NULL, .flags = 0, },
[PROCESSOR] = { .name = "PROCESSOR", .title = "CPU ", .description = "Id of the CPU the process last executed on", .flags = 0, },
- [M_SIZE] = { .name = "M_SIZE", .title = " VIRT ", .description = "Total program size in virtual memory", .flags = 0, },
+ [M_VIRT] = { .name = "M_VIRT", .title = " VIRT ", .description = "Total program size in virtual memory", .flags = 0, },
[M_RESIDENT] = { .name = "M_RESIDENT", .title = " RES ", .description = "Resident set size, size of the text and data sections, plus stack usage", .flags = 0, },
[M_SHARE] = { .name = "M_SHARE", .title = " SHR ", .description = "Size of the process's shared pages", .flags = 0, },
[M_TRS] = { .name = "M_TRS", .title = " CODE ", .description = "Size of the text segment of the process", .flags = 0, },
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
index ecf84a79..4f40acad 100644
--- a/linux/LinuxProcessList.c
+++ b/linux/LinuxProcessList.c
@@ -494,7 +494,7 @@ static bool LinuxProcessList_readStatmFile(LinuxProcess* process, const char* di
return false;
int r = fscanf(statmfile, "%ld %ld %ld %ld %ld %ld %ld",
- &process->super.m_size,
+ &process->super.m_virt,
&process->super.m_resident,
&process->m_share,
&process->m_trs,
diff --git a/linux/Platform.c b/linux/Platform.c
index 21d65156..ff20d133 100644
--- a/linux/Platform.c
+++ b/linux/Platform.c
@@ -62,7 +62,7 @@ in the source distribution for its full text.
#include "zfs/ZfsCompressedArcMeter.h"
-ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_SIZE, M_RESIDENT, (int)M_SHARE, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 };
+ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_VIRT, M_RESIDENT, (int)M_SHARE, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 };
//static ProcessField defaultIoFields[] = { PID, IO_PRIORITY, USER, IO_READ_RATE, IO_WRITE_RATE, IO_RATE, COMM, 0 };

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