]> git.proxmox.com Git - pve-common.git/commitdiff
fix convert_size with decimal numbers and add tests
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 15 Dec 2017 09:58:10 +0000 (10:58 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 15 Dec 2017 10:15:50 +0000 (11:15 +0100)
converting from 0.5 gb to mb resulted in 0 mb
with this patch it correctly returns 512

also add tests and catch more errors

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>

No differences found