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>