summaryrefslogtreecommitdiffstats
path: root/unsupported
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 /unsupported
parent3e5cba91ce3c7661e5b6406b1840cdc27d397dc1 (diff)
Rename virtual memory column from M_SIZE to M_VIRT
Closes: #325
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Platform.c4
-rw-r--r--unsupported/UnsupportedProcessList.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/unsupported/Platform.c b/unsupported/Platform.c
index 6646398d..5bf1a2de 100644
--- a/unsupported/Platform.c
+++ b/unsupported/Platform.c
@@ -28,7 +28,7 @@ const SignalItem Platform_signals[] = {
const unsigned int Platform_numberOfSignals = ARRAYSIZE(Platform_signals);
-ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_SIZE, M_RESIDENT, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 };
+ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_VIRT, M_RESIDENT, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 };
ProcessFieldData Process_fields[] = {
[0] = { .name = "", .title = NULL, .description = NULL, .flags = 0, },
@@ -47,7 +47,7 @@ ProcessFieldData Process_fields[] = {
[STARTTIME] = { .name = "STARTTIME", .title = "START ", .description = "Time the process was started", .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, },
[ST_UID] = { .name = "ST_UID", .title = " UID ", .description = "User ID of the process owner", .flags = 0, },
[PERCENT_CPU] = { .name = "PERCENT_CPU", .title = "CPU% ", .description = "Percentage of the CPU time the process used in the last sampling", .flags = 0, },
diff --git a/unsupported/UnsupportedProcessList.c b/unsupported/UnsupportedProcessList.c
index 6c0e0229..098eb488 100644
--- a/unsupported/UnsupportedProcessList.c
+++ b/unsupported/UnsupportedProcessList.c
@@ -65,7 +65,7 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
proc->starttime_ctime = 1433116800; // Jun 01, 2015
Process_fillStarttimeBuffer(proc);
- proc->m_size = 100;
+ proc->m_virt = 100;
proc->m_resident = 100;
proc->minflt = 20;

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