diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-11-20 17:09:34 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2020-11-21 19:39:45 +0100 |
commit | fa002c0ba95929bef65df57a33471682666b46ba (patch) | |
tree | f47272951cd6c75be81fdf61c501c14871ef6471 /openbsd | |
parent | 3e5cba91ce3c7661e5b6406b1840cdc27d397dc1 (diff) |
Rename virtual memory column from M_SIZE to M_VIRT
Closes: #325
Diffstat (limited to 'openbsd')
-rw-r--r-- | openbsd/OpenBSDProcess.c | 4 | ||||
-rw-r--r-- | openbsd/OpenBSDProcessList.c | 2 | ||||
-rw-r--r-- | openbsd/Platform.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/openbsd/OpenBSDProcess.c b/openbsd/OpenBSDProcess.c index de823ce4..4b79ea36 100644 --- a/openbsd/OpenBSDProcess.c +++ b/openbsd/OpenBSDProcess.c @@ -118,8 +118,8 @@ ProcessFieldData Process_fields[] = { .description = "Id of the CPU the process last executed on", .flags = 0, }, - [M_SIZE] = { - .name = "M_SIZE", + [M_VIRT] = { + .name = "M_VIRT", .title = " VIRT ", .description = "Total program size in virtual memory", .flags = 0, diff --git a/openbsd/OpenBSDProcessList.c b/openbsd/OpenBSDProcessList.c index aec13477..6b0b3951 100644 --- a/openbsd/OpenBSDProcessList.c +++ b/openbsd/OpenBSDProcessList.c @@ -229,7 +229,7 @@ static inline void OpenBSDProcessList_scanProcs(OpenBSDProcessList* this) { } } - proc->m_size = kproc->p_vm_dsize; + proc->m_virt = kproc->p_vm_dsize; proc->m_resident = kproc->p_vm_rssize; proc->percent_mem = (proc->m_resident * CRT_pageSizeKB) / (double)(this->super.totalMem) * 100.0; proc->percent_cpu = CLAMP(getpcpu(kproc), 0.0, this->super.cpuCount * 100.0); diff --git a/openbsd/Platform.c b/openbsd/Platform.c index bf045396..57b561e3 100644 --- a/openbsd/Platform.c +++ b/openbsd/Platform.c @@ -43,7 +43,7 @@ in the source distribution for its full text. #include <math.h> -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 }; int Platform_numberOfFields = LAST_PROCESSFIELD; |