Skip to content

Commit

Permalink
From Bytes to MiB
Browse files Browse the repository at this point in the history
Co-authored-by: Louis <[email protected]>
Signed-off-by: Git'Fellow <[email protected]>
  • Loading branch information
solracsf and artonge authored Jan 22, 2024
1 parent e65120d commit 972e58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/BackgroundJobs/GenerateMetadataJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private function scanFolder(Folder $folder): void {
// Don't generate metadata for files bigger than metadata_max_memory
$nodeSize = $node->getSize();
$memoryLimit = $this->config->getSystemValueInt('metadata_max_memory', self::DEFAULT_MEMORY_LIMIT);
if ($nodeSize > $memoryLimit) {
if ($nodeSize > $memoryLimit * 1 000 000) {

Check failure on line 109 in core/BackgroundJobs/GenerateMetadataJob.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

ParseError

core/BackgroundJobs/GenerateMetadataJob.php:109:37: ParseError: Syntax error, unexpected T_LNUMBER on line 109 (see https://psalm.dev/173)

Check failure

Code scanning / Psalm

ParseError Error

Syntax error, unexpected T_LNUMBER on line 109
$this->logger->debug("Skipping generating metadata for fileid " . $node->getId() . " as its size exceeds configured 'metadata_max_memory'.");
continue;
}
Expand Down

0 comments on commit 972e58c

Please sign in to comment.