Skip to content

Commit

Permalink
chore: dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
loks0n committed Jun 13, 2024
1 parent be67095 commit 1687269
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Orchestration/Adapter/DockerAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,8 @@ public function getStats(?string $container = null, array $filters = []): array
{
// List ahead of time, since API does not allow listing all usage stats
$containerIds = [];

var_dump($container, $filters);

if ($container === null) {
$containers = $this->list($filters);

var_dump($containers);
$containerIds = \array_map(fn ($c) => $c->getId(), $containers);
} else {
$containerIds[] = $container;
Expand All @@ -290,6 +285,8 @@ public function getStats(?string $container = null, array $filters = []): array
throw new Orchestration($result['response']);
}

var_dump($result);

$stats = \json_decode($result['response'], true);

// Calculate CPU usage
Expand Down

0 comments on commit 1687269

Please sign in to comment.