mirror of
https://git.proxmox.com/git/pve-installer
synced 2025-04-28 16:59:06 +00:00
tui: round disk sizes when displaying
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
beec6a1754
commit
706cdb2afd
@ -232,7 +232,7 @@ impl fmt::Display for Disk {
|
||||
// https://lists.proxmox.com/pipermail/pbs-devel/2023-May/006125.html
|
||||
write!(
|
||||
f,
|
||||
"{} ({} GiB)",
|
||||
"{} ({:.2} GiB)",
|
||||
self.path,
|
||||
(self.size as f64) / 1024. / 1024. / 1024.
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user