mirror of
https://git.proxmox.com/git/pve-installer
synced 2025-08-04 11:44:29 +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
|
// https://lists.proxmox.com/pipermail/pbs-devel/2023-May/006125.html
|
||||||
write!(
|
write!(
|
||||||
f,
|
f,
|
||||||
"{} ({} GiB)",
|
"{} ({:.2} GiB)",
|
||||||
self.path,
|
self.path,
|
||||||
(self.size as f64) / 1024. / 1024. / 1024.
|
(self.size as f64) / 1024. / 1024. / 1024.
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user