fix inc_size
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 28 Jan 2011 14:19:16 +0000 (15:19 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 28 Jan 2011 14:19:16 +0000 (15:19 +0100)
bin/BackupPC_ASA_PostArchive_Update

index 8d69bf6..8b31d6f 100755 (executable)
@@ -301,7 +301,7 @@ sub check_archive {
                check_part($host, $num, $part_nr, $tar_size, $size, $md5, $items);
 
                # round increment size to 2k block size
                check_part($host, $num, $part_nr, $tar_size, $size, $md5, $items);
 
                # round increment size to 2k block size
-               $inc_size += int(($size + 2048) / 2048);
+               $inc_size += int((($size + 2048) / 2048 ) * 2048);
        }
 
        $sth_inc_size->execute(
        }
 
        $sth_inc_size->execute(