Skip to content

Commit

Permalink
Revert breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Meldiron committed Nov 26, 2024
1 parent 3550286 commit 136aea5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/http.php
Original file line number Diff line number Diff line change
Expand Up @@ -1379,12 +1379,16 @@ function (string $runtimeId, ?string $payload, string $path, string $method, mix
->inject('response')
->action(function (Table $statsHost, Table $statsContainers, Response $response) {
$output = [
'runtimes' => [],
'usage' => $statsHost->get('host', 'usage') ?? null
'status' => 'pass',
'runtimes' => []
];

$hostUsage = $statsHost->get('host', 'usage') ?? null;
$output['usage'] = $hostUsage;

foreach ($statsContainers as $hostname => $stat) {
$output['runtimes'][$hostname] = [
'status' => 'pass',
'usage' => $stat['usage'] ?? null
];
}
Expand Down

0 comments on commit 136aea5

Please sign in to comment.