From e19793ea7aeb6b2548088672ce09f09f8b44e7c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Mon, 8 Jan 2018 04:00:48 +0100 Subject: [PATCH] Minor display fix Changed "size on disk" widget to display only two decimal places. --- qubesmanager/table_widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubesmanager/table_widgets.py b/qubesmanager/table_widgets.py index 7477dcc..ba4b460 100644 --- a/qubesmanager/table_widgets.py +++ b/qubesmanager/table_widgets.py @@ -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):