From 0b09eac455805ed6bc3ade49f28489b23daaaf8d Mon Sep 17 00:00:00 2001 From: ellen56 Date: Fri, 3 Jul 2009 13:32:56 +0000 Subject: [PATCH] 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 --- xCAT-rmc/plugin/rmcmon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-rmc/plugin/rmcmon.pm b/xCAT-rmc/plugin/rmcmon.pm index 276a23953..45a89bcc1 100644 --- a/xCAT-rmc/plugin/rmcmon.pm +++ b/xCAT-rmc/plugin/rmcmon.pm @@ -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); }