Skip to content

Commit

Permalink
Fix drive reads/writes not showing on 4.19
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgp committed Jan 31, 2019
1 parent 9e9c985 commit 63992c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Linfo/OS/Linux.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public function getHD()
$parts = explode('/', $path);

// Attempt getting read/write stats
if (preg_match('/^(\d+)\s+\d+\s+\d+\s+\d+\s+(\d+)\s+\d+\s+\d+\s+\d+\s+\d+\s+\d+\s+\d+$/', Common::getContents(dirname(dirname($path)).'/stat'), $statMatches) !== 1) {
if (preg_match('/^(\d+)\s+\d+\s+\d+\s+\d+\s+(\d+)/', Common::getContents(dirname(dirname($path)).'/stat'), $statMatches) !== 1) {
// Didn't get it
$reads = false;
$writes = false;
Expand Down

0 comments on commit 63992c0

Please sign in to comment.