]> source.dussan.org Git - nextcloud-server.git/commitdiff
Update View.php 16946/head
authorScott Dutton <exussum12@users.noreply.github.com>
Wed, 15 Apr 2020 18:10:06 +0000 (19:10 +0100)
committerGitHub <noreply@github.com>
Wed, 15 Apr 2020 18:10:06 +0000 (19:10 +0100)
lib/private/Files/View.php

index a5f93b4b73cbcd2d1f241e36772aefb5277e2bb7..0453064ae5231bb2709966ea21587ceceb5fa63f 100644 (file)
@@ -423,7 +423,7 @@ class View {
                @ob_end_clean();
                $handle = $this->fopen($path, 'rb');
                if ($handle) {
-                       $chunkSize = 512000; // 500 kB chunks
+                       $chunkSize = 524288; // 512 kB chunks
                        while (!feof($handle)) {
                                echo fread($handle, $chunkSize);
                                flush();
@@ -447,7 +447,7 @@ class View {
                @ob_end_clean();
                $handle = $this->fopen($path, 'rb');
                if ($handle) {
-                       $chunkSize = 512000; // 500 kB chunks
+                       $chunkSize = 524288; // 512 kB chunks
                        $startReading = true;
 
                        if ($from !== 0 && $from !== '0' && fseek($handle, $from) !== 0) {