summaryrefslogtreecommitdiffstats
path: root/Process.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-04-09 22:49:36 -0300
committerHisham Muhammad <hisham@gobolinux.org>2014-04-09 22:49:36 -0300
commit5d6ad853fad53cdbad810d7e6748fe4a23ed9627 (patch)
treefa92edcdd4bb4172acfb402893ae1b7e840139d8 /Process.h
parent127f847ca54c14893143f1f678cefa0b060d5b8d (diff)
Support for very large numbers, now tested on a 64-bit machine.
Diffstat (limited to 'Process.h')
-rw-r--r--Process.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Process.h b/Process.h
index 77488553..774b50ac 100644
--- a/Process.h
+++ b/Process.h
@@ -182,11 +182,11 @@ extern const char *Process_fieldTitles[];
void Process_getMaxPid();
-#define ONE_K 1024
+#define ONE_K 1024L
#define ONE_M (ONE_K * ONE_K)
#define ONE_G (ONE_M * ONE_K)
-#define ONE_DECIMAL_K 1000
+#define ONE_DECIMAL_K 1000L
#define ONE_DECIMAL_M (ONE_DECIMAL_K * ONE_DECIMAL_K)
#define ONE_DECIMAL_G (ONE_DECIMAL_M * ONE_DECIMAL_K)

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