summaryrefslogtreecommitdiffstats
path: root/Process.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-04-09 22:32:54 -0300
committerHisham Muhammad <hisham@gobolinux.org>2014-04-09 22:32:54 -0300
commit127f847ca54c14893143f1f678cefa0b060d5b8d (patch)
tree7ce9c377a5d49cd6c099c3ad2b5aba1be3fce4fb /Process.h
parent19b438de1009047ee425d1f36207c20b9c80d43a (diff)
Support really large numbers on 64-bit architectures; first try.
Diffstat (limited to 'Process.h')
-rw-r--r--Process.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/Process.h b/Process.h
index a8234776..77488553 100644
--- a/Process.h
+++ b/Process.h
@@ -120,13 +120,13 @@ typedef struct Process_ {
#endif
int processor;
- int m_size;
- int m_resident;
- int m_share;
- int m_trs;
- int m_drs;
- int m_lrs;
- int m_dt;
+ long m_size;
+ long m_resident;
+ long m_share;
+ long m_trs;
+ long m_drs;
+ long m_lrs;
+ long m_dt;
#ifdef HAVE_OPENVZ
unsigned int ctid;
@@ -188,6 +188,7 @@ void Process_getMaxPid();
#define ONE_DECIMAL_K 1000
#define ONE_DECIMAL_M (ONE_DECIMAL_K * ONE_DECIMAL_K)
+#define ONE_DECIMAL_G (ONE_DECIMAL_M * ONE_DECIMAL_K)
void Process_delete(Object* cast);

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