fix bug when result of xdsh have a long hostname

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3698 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ellen56 2009-07-03 13:32:56 +00:00
parent 8658007548
commit 0b09eac455

View File

@ -1480,7 +1480,7 @@ sub showmetrix($rrddir, $attrs, $start_time, $end_time)
if($::RUNCMD_RC != 0){
return $result;
}
$output =~ s/$remote: \/var\/rrd\//''/;
$output =~ s/(\S+): \/var\/rrd\//''/;
} else {
$output = xCAT::Utils->runcmd("ls -A $rrddir/$attr*", 0);
}