From b5a15a1cefd6835eda8e5dcf995044fe2efd9941 Mon Sep 17 00:00:00 2001 From: steve Date: Tue, 20 Jun 2006 21:46:08 +0000 Subject: [PATCH] 2006-06-20 21:46:08 by steve BUGFIX: Deal with quoted memory settings, so we disply the correct output. --- bin/xen-list-images | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/xen-list-images b/bin/xen-list-images index 2110f08..6d12c72 100755 --- a/bin/xen-list-images +++ b/bin/xen-list-images @@ -67,7 +67,7 @@ Show the version number and exit. -- http://www.steve.org.uk/ - $Id: xen-list-images,v 1.5 2006-06-13 17:04:52 steve Exp $ + $Id: xen-list-images,v 1.6 2006-06-20 21:46:08 steve Exp $ =cut @@ -237,7 +237,7 @@ sub parseCommandLineArguments if ( $VERSION ) { - my $REVISION = '$Revision: 1.5 $'; + my $REVISION = '$Revision: 1.6 $'; if ( $REVISION =~ /1.([0-9.]+) / ) { @@ -309,7 +309,7 @@ sub displayInstance { $name = $1; } - if ( $line =~ /^\s*memory\s*=\s*([0-9]+)/i ) + if ( $line =~ /.*memory[^0-9]*([0-9]+)/i ) { $mem = $1; }