Minor display fix

Changed "size on disk" widget to display only two decimal places.
This commit is contained in:
Marta Marczykowska-Górecka 2018-01-08 04:00:48 +01:00
parent 899ca6d394
commit e19793ea7a
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -448,7 +448,7 @@ class VmSizeOnDiskItem(QtGui.QTableWidgetItem):
self.setText("n/a")
else:
self.value = 10
self.value = self.vm.get_disk_utilization()/(1024*1024)
self.value = round(self.vm.get_disk_utilization()/(1024*1024), 2)
self.setText(str(self.value) + " MiB")
def __lt__(self, other):