fix: address review feedback on oom_score_adj

Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/87c4cd21-c405-46fd-b522-b6658f2f3b93

Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-12 11:55:07 +00:00
committed by GitHub
parent 374695baae
commit 47a6fd2c0e
2 changed files with 2 additions and 2 deletions

View File

@@ -210,7 +210,7 @@
"oom_score_adj": {
"type": "integer",
"minimum": -1000,
"maximum": 0
"maximum": 1000
},
"volumes": {
"type": "array",

View File

@@ -347,7 +347,7 @@ readonly class ContainerDefinitionFetcher {
$oomScoreAdj = 0;
if (isset($entry['oom_score_adj'])) {
$oomScoreAdj = max(-1000, min(0, (int)$entry['oom_score_adj']));
$oomScoreAdj = $entry['oom_score_adj'];
}
$containers[] = new Container(