Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/194'
Browse files Browse the repository at this point in the history
* origin/pr/194:
  Fix arithmetic in init/max mem ratio correction
  • Loading branch information
marmarek committed Aug 28, 2019
2 parents 6107a1f + bbe14f5 commit 1e3c0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubesmanager/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def check_mem_changes(self):
self.tr("Initial memory can not be less than one tenth "
"Max memory.<br>Setting initial memory to the minimum "
"allowed value."))
self.init_mem.setValue(self.max_mem_size.value() / 10)
self.init_mem.setValue((self.max_mem_size.value() + 9) // 10)

def check_warn_dispvmnetvm(self):
if not hasattr(self.vm, 'default_dispvm'):
Expand Down

0 comments on commit 1e3c0bf

Please sign in to comment.