mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-08 22:36:32 +02:00
php_tar: Fixes total size.
This commit is contained in:
@@ -59,7 +59,7 @@ class Archive {
|
|||||||
private function php_tar($dirs, $files) {
|
private function php_tar($dirs, $files) {
|
||||||
|
|
||||||
$filesizes = array();
|
$filesizes = array();
|
||||||
$total_size = 0;
|
$total_size = 512 * count($dirs);
|
||||||
foreach (array_keys($files) as $real_file) {
|
foreach (array_keys($files) as $real_file) {
|
||||||
|
|
||||||
$size = filesize($real_file);
|
$size = filesize($real_file);
|
||||||
|
Reference in New Issue
Block a user