Hi Radoslav, > If block size is < 1024 shell integer division will always round down. > Add 512 (1024/2) to the left side, to cause round up for values >= .5. Correct, merged. Thanks! Kind regards, Petr