]> git.proxmox.com Git - pve-installer.git/commit - proxinstall
get_device_desc: display disk size with 2 decimal places
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 25 Jan 2022 13:04:43 +0000 (14:04 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 26 Jan 2022 10:59:53 +0000 (11:59 +0100)
commitb04864ece2654c6ecf794f9c3ad1cedede351532
tree9f9bc88e4ca14914d7f9442fb6b21ffbc096d007
parentc9b4369c4f75219e51017df4dd481839f883582a
get_device_desc: display disk size with 2 decimal places

instead of cutting it off by using int

especially relevant currently with 2 TB disks (people wonder why
it's displayed as 1 TiB - and would be fine with 1.95TiB).

Reported in our community forum:
https://forum.proxmox.com/threads/.103636/

Tested in a VM with a 100 GiB, 20GiB and 2TiB disk

Addtionally added the explicit return ath the end of the if branch,
instead of relying on the last statement not moving.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
proxinstall