Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	storage/table/cpu-usage-health-check.csv
#	storage/table/cpu-usage-http-request.csv
#	storage/table/cpu-usage-static.csv
  • Loading branch information
thecaliskan committed Jan 5, 2024
2 parents bacb058 + b93aa24 commit 6d4195e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Console/Commands/BenchmarkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ public function generateCpuUsageTable(): void
'Server',
...array_map(
fn ($second) => str($second)->padLeft(2, 0)->prepend('00:'),
range(1, $endpointEnum->getBenchmarkDuration())
range(1, $endpointEnum->getBenchmarkDuration() - 1)
),
]];
foreach (ServerEnum::cases() as $serverEnum) {
$data[$serverEnum->name] = [
$serverEnum->getTitle(),
...$this->getStatisticsData($serverEnum, $endpointEnum)
->pluck('CPUPerc')
->slice(0, $endpointEnum->getBenchmarkDuration())
->slice(0, $endpointEnum->getBenchmarkDuration() - 1)
->map(fn ($percentage) => str_replace('%', '', $percentage)),
];
}
Expand Down

0 comments on commit 6d4195e

Please sign in to comment.