Skip to content

Commit

Permalink
Enhance grammar in qmemman
Browse files Browse the repository at this point in the history
Signed-off-by: Atrate <[email protected]>
  • Loading branch information
Atrate committed Dec 6, 2024
1 parent 039b7d3 commit 8a66084
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qubes/qmemman/systemstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_free_xen_memory(self):
)
elif xen_free < assigned_but_unused + self.XEN_FREE_MEM_MIN:
self.log.error(
"Xen free = {!r} too small for satisfy assignments! "
"Xen free = {!r} too small to satisfy assignments! "
"assigned_but_unused={!r}, domdict={!r}".format(
xen_free, assigned_but_unused, self.domdict
)
Expand Down Expand Up @@ -350,7 +350,7 @@ def print_stats(self, xenfree, memset_reqs):
def do_balance(self):
self.log.debug("do_balance()")
if os.path.isfile("/var/run/qubes/do-not-membalance"):
self.log.debug("do-not-membalance file preset, returning")
self.log.debug("do-not-membalance file present, returning")

Check warning on line 353 in qubes/qmemman/systemstate.py

View check run for this annotation

Codecov / codecov/patch

qubes/qmemman/systemstate.py#L353

Added line #L353 was not covered by tests
return

self.refresh_memactual()
Expand Down Expand Up @@ -406,7 +406,7 @@ def do_balance(self):
== self.domdict[dom2].memory_actual
):
self.log.warning(
"dom {!r} didnt react to memory request"
"dom {!r} did not react to memory request"
" (holds {}, requested balloon down to {})".format(
dom2,
self.domdict[dom2].memory_actual,
Expand All @@ -416,8 +416,8 @@ def do_balance(self):
self.domdict[dom2].no_progress = True
else:
self.log.warning(
"dom {!r} still hold more"
" memory than have assigned ({} > {})".format(
"dom {!r} still holds more"
" memory than assigned ({} > {})".format(
dom2,
self.domdict[dom2].memory_actual,
mem2,
Expand Down

0 comments on commit 8a66084

Please sign in to comment.