aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChristian Trautman <ctrautma@redhat.com>2016-08-11 12:34:07 -0400
committerChristian Trautman <ctrautma@redhat.com>2016-08-11 12:34:07 -0400
commitcc4667ef7310b300cdf40202a2de0e19e85fa800 (patch)
tree20a4cdda64fe663cf9eead0f6603d0461b01be0d /tools
parent5a0c6772d255aeb0ab1e6246c91bbeb56bb3a239 (diff)
hugepage_fix: Fix free hugepage calcluation
Fixes hugepage free calculation when hugepage size is not 1GB. Calculation previously assumed 1GB in size. This change allows for all sizes to be calculated properly. Change-Id: Ib05800f51992e9757c412a66296a47ad29e88a3b Signed-off-by: Christian Trautman <ctrautma@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/hugepages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hugepages.py b/tools/hugepages.py
index bba40122..d233f04d 100644
--- a/tools/hugepages.py
+++ b/tools/hugepages.py
@@ -42,7 +42,7 @@ def get_hugepage_size():
for line in data:
match = hugepage_size_re.search(line)
if match:
- _LOGGER.info('Hugepages size: %s', match.group('size_hp'))
+ _LOGGER.info('Hugepages size: %s kb', match.group('size_hp'))
return int(match.group('size_hp'))
else:
_LOGGER.error('Could not parse for hugepage size')