remove Label name on MS Windows.

git-svn-id: http://svn.centreon.com/trunk/plugins@3375 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
Julien Mathis 2007-10-18 10:25:40 +00:00
parent 2b71ba02fe
commit e2baa00362
1 changed files with 6 additions and 0 deletions

View File

@ -254,6 +254,12 @@ if (!$Size){
} }
if (($Size =~ /([0-9]+)/) && ($AllocationUnits =~ /([0-9]+)/)){ if (($Size =~ /([0-9]+)/) && ($AllocationUnits =~ /([0-9]+)/)){
if ($hrStorageDescr =~ /\:/){
my @tab = split(/\:/, $hrStorageDescr);
$hrStorageDescr = $tab[0] . ":";
}
if (!$Size){ if (!$Size){
print "The number of the option -p is not a hard drive\n"; print "The number of the option -p is not a hard drive\n";
exit $ERRORS{'CRITICAL'}; exit $ERRORS{'CRITICAL'};