Skip to content

Commit

Permalink
Merge pull request #614 from laravel/revert-606-format-numeric-values
Browse files Browse the repository at this point in the history
Revert "[3.0] Properly format numeric values"
  • Loading branch information
driesvints authored Jun 14, 2019
2 parents 5a6a174 + af25487 commit 2f95209
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/SystemProcessCounter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ public function getWorkerStats($name)
$rows = explode("\n", $process->getOutput());

return collect($rows)->filter()->map(function ($rows) {
$row = collect(explode(' ', $rows))->filter()->take(2)->map(function ($value) {
return str_replace(',', '.', $value);
});
$row = collect(explode(' ', $rows))->filter()->take(2);

return ['cpu' => $row->first() / 100, 'mem' => $row->last()];
});
Expand Down

0 comments on commit 2f95209

Please sign in to comment.