]> git.proxmox.com Git - pve-storage.git/commit
pvesm status: improve output and its format
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 27 Jul 2017 10:16:46 +0000 (12:16 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 27 Jul 2017 11:09:28 +0000 (13:09 +0200)
commitd40e27deb264bdbec224a973a4778b988c18ed99
treed99d0a757d49d2665645135a03dc455aff22a703
parent44ae567c383ac6c888f33fcc1c9c348b0deb5edd
pvesm status: improve output and its format

Add column names at top of output, this allows easier understanding
of what each column means.

Use leading spaces on the percentage column so that this is lined up.

Switch out the 1/0 from the active column with the actual status
(active, inactive, disabled).

Show N/A if storage is disabled.

Use $res->{total} instead of calculating a sum of used and available.

Remove wrong rounding - if we want to display 2 digits from the
fractional part we would need to add 0.005 not 0.5, this made the
result quite wrong depending on the storage size.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CLI/pvesm.pm