Skip to content

Commit

Permalink
Revert "[3.0] Properly format numeric values"
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Jun 14, 2019
1 parent 5a6a174 commit af25487
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 af25487

Please sign in to comment.