[PATCH 8/8] Limit displayed filesystem size to two decimal places
Vratislav Podzimek
vpodzime at redhat.com
Wed Apr 9 15:15:51 UTC 2014
Should be enough.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/ui/gui/spokes/custom.py | 2 +-
pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index f8cccc1..0c89784 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1388,7 +1388,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
self._labelEntry.set_text("")
fancy_set_sensitive(self._labelEntry, True)
- self._sizeEntry.set_text(device.size.humanReadable(max_places=None))
+ self._sizeEntry.set_text(device.size.humanReadable(max_places=2))
self._reformatCheckbox.set_active(not device.format.exists)
fancy_set_sensitive(self._reformatCheckbox, not device.protected and
diff --git a/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py b/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
index 892f357..fc6b069 100644
--- a/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
+++ b/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
@@ -370,7 +370,7 @@ class ContainerDialog(GUIObject):
self._raidStoreFilter.refilter()
self._populate_raid()
- self._sizeEntry.set_text(self.size.humanReadable(max_places=None))
+ self._sizeEntry.set_text(self.size.humanReadable(max_places=2))
if self.size_policy == SIZE_POLICY_AUTO:
self._sizeCombo.set_active(0)
elif self.size_policy == SIZE_POLICY_MAX:
--
1.9.0
More information about the anaconda-patches
mailing list