Skip to content

Commit

Permalink
qmemman: return consistent type from balloon()
Browse files Browse the repository at this point in the history
Always return a list.
  • Loading branch information
marmarek committed Oct 9, 2023
1 parent 82e7248 commit c093ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubes/qmemman/algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def balloon(memsize, domain_dictionary):
log.info('req={} avail={} donors={!r}'.format(memsize, available, donors))

if available < memsize:
return ()
return []
scale = 1.0 * memsize / available
for donors_iter in donors:
dom_id, mem = donors_iter
Expand Down

0 comments on commit c093ed0

Please sign in to comment.