]> git.etc.gen.nz Git - spong.git/commitdiff
change DFIGNORE checks to use m{} to slashes '/' can be used in file system names
authorStephen L Johnson <sjohnson@monsters.org>
Fri, 10 May 2002 21:07:43 +0000 (21:07 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Fri, 10 May 2002 21:07:43 +0000 (21:07 +0000)
src/lib/Spong/Client/plugins/check_disk

index f5adebcbbaec5a35de027b12c4d064ff52573f23..94a2c3462f1d1302aa1270e4aa8acb626f96ec2b 100755 (executable)
@@ -4,7 +4,7 @@ $CHECKFUNCS{'disk'} = \&check_disk;
 # This check check the amount of free diskspace for all of the mounted disk
 # partitions and the the amount of free swapspace.
 
-# $Id: check_disk,v 1.4 2001/09/28 19:20:18 sljohnson Exp $
+# $Id: check_disk,v 1.5 2002/05/10 21:07:43 sljohnson Exp $
 
 use Spong::SafeExec qw(safe_exec);
 
@@ -26,8 +26,8 @@ sub check_disk {
         my $warn  = $DFWARN{$name} || $DFWARN{$rawfs} || $DFWARN{"ALL"};
 
         foreach $check ( @DFIGNORE ) { 
-           next DFPIPE if $rawfs =~ /$check/;
-           next DFPIPE if $name  =~ /$check/;
+           next DFPIPE if $rawfs =~ m{$check};
+           next DFPIPE if $name  =~ m{$check};
         }
 
         if( $percent > $lpercent ) { $lpercent = $percent; $large = $name; }