Merge remote-tracking branch 'origin/pr/194'

* origin/pr/194:
  Fix arithmetic in init/max mem ratio correction
This commit is contained in:
Marek Marczykowski-Górecki 2019-08-28 15:52:22 +02:00
commit 1e3c0bfcd8
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -545,7 +545,7 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtWidgets.QDialog):
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'):