Jelajahi Sumber

Minor display fix

Changed "size on disk" widget to display only two decimal places.
Marta Marczykowska-Górecka 6 tahun lalu
induk
melakukan
e19793ea7a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      qubesmanager/table_widgets.py

+ 1 - 1
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):