We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0389ce commit 864d8c7Copy full SHA for 864d8c7
1 file changed
procstat/python_modules/procstat.py
@@ -120,8 +120,7 @@
120
# clock ticks per second... jiffies (HZ)
121
JIFFIES_PER_SEC = os.sysconf('SC_CLK_TCK')
122
123
-# KiB
124
-PAGE_SIZE=os.sysconf('SC_PAGE_SIZE') / 1024
+PAGE_SIZE=os.sysconf('SC_PAGE_SIZE')
125
126
PROCESSES = {}
127
@@ -222,7 +221,6 @@ def get_rss(pids):
222
221
223
rss += int(statm[1])
224
225
- # Convert to KiB
226
rss *= PAGE_SIZE
227
return rss
228
@@ -371,7 +369,7 @@ def metric_init(params):
371
369
'description': 'The total percent CPU utilization'},
372
370
373
mem = {
374
- 'units': 'KB',
+ 'units': 'B',
375
'description': 'The total memory utilization'}
376
)
377
0 commit comments