summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBowDown097 <btd6modsyeet@gmail.com>2023-11-24 13:25:05 -0800
committerBowDown097 <btd6modsyeet@gmail.com>2023-11-24 13:25:05 -0800
commited1c7450e28f59984bdcb0d6614a7c614f3f7808 (patch)
tree4df758e632bbe5bdedb314f54b9adab0d7cc0db4
parent986dbfc19c6c84f5b86f345257212a1a7abb62f7 (diff)
Use printKBytes
-rw-r--r--linux/LinuxProcess.c2
-rw-r--r--linux/LinuxProcessTable.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c
index bc91c5d8..8c11f23a 100644
--- a/linux/LinuxProcess.c
+++ b/linux/LinuxProcess.c
@@ -244,7 +244,7 @@ static void LinuxProcess_rowWriteField(const Row* super, RichString* str, Proces
break;
case M_TRS: Row_printBytes(str, lp->m_trs * lhost->pageSize, coloring); return;
case M_SHARE: Row_printBytes(str, lp->m_share * lhost->pageSize, coloring); return;
- case M_PRIV: Row_printBytes(str, lp->m_priv, coloring); return;
+ case M_PRIV: Row_printKBytes(str, lp->m_priv, coloring); return;
case M_PSS: Row_printKBytes(str, lp->m_pss, coloring); return;
case M_SWAP: Row_printKBytes(str, lp->m_swap, coloring); return;
case M_PSSWP: Row_printKBytes(str, lp->m_psswp, coloring); return;
diff --git a/linux/LinuxProcessTable.c b/linux/LinuxProcessTable.c
index a6c4c716..cb44b388 100644
--- a/linux/LinuxProcessTable.c
+++ b/linux/LinuxProcessTable.c
@@ -703,7 +703,7 @@ static bool LinuxProcessTable_readStatmFile(LinuxProcess* process, openat_arg_t
process->super.m_resident *= host->pageSizeKB;
}
- process->m_priv = (process->super.m_resident - (process->m_share * host->pageSizeKB)) * ONE_K;
+ process->m_priv = process->super.m_resident - (process->m_share * host->pageSizeKB);
return r == 7;
}

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