mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-07-31 10:30:15 +02:00
Fix the size prediction for files where (size%512==0)
This commit is contained in:
@@ -96,7 +96,8 @@ class Archive {
|
||||
$size = filesize($file);
|
||||
$filesizes[$file] = $size;
|
||||
|
||||
$total_size += 512 + $size + (512 - ($size % 512));
|
||||
$total_size += 512 + $size;
|
||||
if ($size % 512 != 0) $total_size += 512 - ($size % 512);
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user