Skip to content

Commit

Permalink
resolving typos
Browse files Browse the repository at this point in the history
  • Loading branch information
hholoubk committed Sep 25, 2024
1 parent ae7bc13 commit f07809d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ def run(test, params, env):
shutil.rmtree(hp_path)
utils_libvirtd.Libvirtd().restart()

# verify test runs on machine with expected hugepagesize
# verify test runs on machine with expected size of hugepages
# and recalculate the target_hugepage if necessary
default_hp_size = int(params.get("default_hp_size", 2048))
target_hugepages = int(params.get("target_hugepages", 1024))
actual_hp_size = avocado_mem.get_huge_page_size()
if actual_hp_size != default_hp_size:
# actual hp size is different that is expected for defined number of hupages
# actual hp size is different that is expected for defined number of hugepages
# as the size is not the main focus of the test, we have to recalculate and replace
new_target_hugepages = int((default_hp_size * target_hugepages) / actual_hp_size)
test.log.warn(f"Default HP size is different than expected. Parameter 'target_hugepagees' was updated: {new_target_hugepages}")
Expand Down

0 comments on commit f07809d

Please sign in to comment.