(endsize / (1024*1024)) is an integer calculation, so if endsize is lower than 1024^2, the result would be 0. Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com>