Fixed deprecated implicit conversion to int

This commit is contained in:
Marta Marczykowska-Górecka 2020-07-14 22:20:54 +02:00
parent 77b42e7c5a
commit 03c04cc93b
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -269,8 +269,8 @@ class GlobalSettingsWindow(ui_globalsettingsdlg.Ui_GlobalSettings,
self.vm_min_mem_val = parse_size(self.vm_min_mem_val)
self.dom0_mem_boost_val = parse_size(self.dom0_mem_boost_val)
self.min_vm_mem.setValue(self.vm_min_mem_val / 1024 / 1024)
self.dom0_mem_boost.setValue(self.dom0_mem_boost_val / 1024 / 1024)
self.min_vm_mem.setValue(int(self.vm_min_mem_val / 1024 / 1024))
self.dom0_mem_boost.setValue(int(self.dom0_mem_boost_val / 1024 / 1024))
def __apply_mem_defaults__(self):