Skip to content

Commit 864d8c7

Browse files
committed
Don't convert to KiloBytes
1 parent d0389ce commit 864d8c7

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

procstat/python_modules/procstat.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@
120120
# clock ticks per second... jiffies (HZ)
121121
JIFFIES_PER_SEC = os.sysconf('SC_CLK_TCK')
122122

123-
# KiB
124-
PAGE_SIZE=os.sysconf('SC_PAGE_SIZE') / 1024
123+
PAGE_SIZE=os.sysconf('SC_PAGE_SIZE')
125124

126125
PROCESSES = {}
127126

@@ -222,7 +221,6 @@ def get_rss(pids):
222221

223222
rss += int(statm[1])
224223

225-
# Convert to KiB
226224
rss *= PAGE_SIZE
227225
return rss
228226

@@ -371,7 +369,7 @@ def metric_init(params):
371369
'description': 'The total percent CPU utilization'},
372370

373371
mem = {
374-
'units': 'KB',
372+
'units': 'B',
375373
'description': 'The total memory utilization'}
376374
)
377375

0 commit comments

Comments
 (0)