diff --git a/plugins/dynamix/include/FileSystemStatus.php b/plugins/dynamix/include/FileSystemStatus.php index 7cda3d7c2..d4ebc21ea 100644 --- a/plugins/dynamix/include/FileSystemStatus.php +++ b/plugins/dynamix/include/FileSystemStatus.php @@ -22,7 +22,7 @@ function zfs($data) {return "zfs-".strtok($data,' ');} switch ($cmd) { case 'status': exec("ps -C btrfs -o cmd=|awk '/$path\$/{print $2}'",$btrfs); - exec("/usr/sbin/zpool status $path|grep -Pom1 '(scrub|resilver) in progress'",$zfs); + exec("/usr/sbin/zpool status $path|grep -Po '(scrub|resilver) in progress'",$zfs); echo implode(',',array_merge(array_map('btrfs',$btrfs),array_map('zfs',$zfs))); break; case 'btrfs-balance':