diff options
author | Enjeck C <patrathewhiz@gmail.com> | 2025-07-28 05:34:17 +0100 |
---|---|---|
committer | Enjeck C <patrathewhiz@gmail.com> | 2025-07-28 05:34:17 +0100 |
commit | 62a6962e89b54fdf974af35b4421706879e54674 (patch) | |
tree | 8402259005467b968a2fc956519802072ea698f0 | |
parent | 993355af9f13f0098e620f6a2ec63d3a64ffc9d0 (diff) | |
download | nextcloud-server-update-size-byte.tar.gz nextcloud-server-update-size-byte.zip |
fix(metadata): Correct filesize limit calculation for metadata generationupdate-size-byte
Signed-off-by: Enjeck C <patrathewhiz@gmail.com>
-rw-r--r-- | core/BackgroundJobs/GenerateMetadataJob.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/BackgroundJobs/GenerateMetadataJob.php b/core/BackgroundJobs/GenerateMetadataJob.php index cb02a8e4ffa..74102509224 100644 --- a/core/BackgroundJobs/GenerateMetadataJob.php +++ b/core/BackgroundJobs/GenerateMetadataJob.php @@ -98,7 +98,7 @@ class GenerateMetadataJob extends TimedJob { // Files are loaded in memory so very big files can lead to an OOM on the server $nodeSize = $node->getSize(); $nodeLimit = $this->config->getSystemValueInt('metadata_max_filesize', self::DEFAULT_MAX_FILESIZE); - if ($nodeSize > $nodeLimit * 1000000) { + if ($nodeSize > $nodeLimit * 1024 * 1024) { $this->logger->debug('Skipping generating metadata for fileid ' . $node->getId() . " as its size exceeds configured 'metadata_max_filesize'."); continue; } |