From fcb10404ce7b8eb6ffe802194909c01043a6476d Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 26 Mar 2021 15:18:49 +0100 Subject: [PATCH] fix diskio regexp (#2683) --- os/linux/local/mode/diskio.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/linux/local/mode/diskio.pm b/os/linux/local/mode/diskio.pm index 252a83649..49deda595 100644 --- a/os/linux/local/mode/diskio.pm +++ b/os/linux/local/mode/diskio.pm @@ -170,7 +170,7 @@ sub manage_selection { } $self->{device} = {}; - while ($disk_parts =~ /^\s*\S+\s+\S+\s+(\S+)\s+\S+\s+\S+\s+(\S+)\s+(\S+)\s+\S+\s+\S+\s+(\S+)\s+(\S+)\s+\S+\s+\S+\s+(\S+)\s*/msg) { + while ($disk_parts =~ /^\s*\S+\s+\S+\s+(\S+)\s+\d+\s+\d+\s+(\d+)\s+(\d+)\s+\d+\s+\d+\s+(\d+)\s+(\d+)\s+\d+\s+\d+\s+(\d+)/mg) { my ($partition_name, $read_sector, $write_sector, $read_ms, $write_ms, $ms_ticks) = ($1, $2, $4, $3, $5, $6); next if (defined($self->{option_results}->{filter_partition_name}) && $self->{option_results}->{filter_partition_name} ne '' &&