From c8e7fbbff849d20fa684b627a961049f4af77c3e Mon Sep 17 00:00:00 2001 From: Tomas Edwardsson Date: Wed, 29 Oct 2014 23:42:42 +0000 Subject: [PATCH] Fix invalid regex if mountpoint has . in path --- check_disks.pl/check_disks.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_disks.pl/check_disks.pl b/check_disks.pl/check_disks.pl index a86805a..82725da 100755 --- a/check_disks.pl/check_disks.pl +++ b/check_disks.pl/check_disks.pl @@ -324,7 +324,7 @@ if($opt_f) { if(defined($alldisks{$f})) { $checkdisks{$f}=$alldisks{$f}; } - } elsif ($f =~ /([\/\w\d]+)\:(\w+)\:(\w+)/) { + } elsif ($f =~ /^(.+?)\:(\w+)\:(\w+)/) { if(defined($alldisks{$1})) { $checkdisks{$1}=$alldisks{$1}; updateRates($1,$2,$3,$checkdisks{$1}->{somme});