mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 20:44:53 -04:00
Fix the size prediction for files where (size%512==0)
This commit is contained in:
parent
e815f4d070
commit
53e32b5986
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,8 @@ class Archive {
|
||||||
$size = filesize($file);
|
$size = filesize($file);
|
||||||
$filesizes[$file] = $size;
|
$filesizes[$file] = $size;
|
||||||
|
|
||||||
$total_size += 512 + $size + (512 - ($size % 512));
|
$total_size += 512 + $size;
|
||||||
|
if ($size % 512 != 0) $total_size += 512 - ($size % 512);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue