Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
david-d-h committed Nov 6, 2023
1 parent 253c9f4 commit 47a5ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Checks/MemoryUsageCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function threshold(int $percentage): static

public function getSystemMemInfo()
{
$data = explode("\n", trim(@file_get_contents('/proc/meminfo') or throw new Exception('Failed to read memory')));
$data = explode("\n", file_get_contents('/proc/meminfo'));
$memInfo = [];

foreach ($data as $line) {
Expand Down

0 comments on commit 47a5ced

Please sign in to comment.