mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-29 23:10:08 +00:00
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:
committed by
GitHub
parent
374695baae
commit
47a6fd2c0e
@@ -210,7 +210,7 @@
|
||||
"oom_score_adj": {
|
||||
"type": "integer",
|
||||
"minimum": -1000,
|
||||
"maximum": 0
|
||||
"maximum": 1000
|
||||
},
|
||||
"volumes": {
|
||||
"type": "array",
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user