diff options
-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; } |