From 70a30bb146676f3a1ebc727b071d7a39a51c1526 Mon Sep 17 00:00:00 2001 From: Philipp Erbelding Date: Thu, 8 Nov 2012 12:38:48 +0100 Subject: [PATCH] prevent matching lines like "shadow_memory = 16" --- bin/xen-list-images | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xen-list-images b/bin/xen-list-images index 0d90a42..caed971 100755 --- a/bin/xen-list-images +++ b/bin/xen-list-images @@ -323,7 +323,7 @@ sub displayInstance { $name = $1; } - if ( $line =~ /.*memory[^0-9]*([0-9]+)/i ) + if ( $line =~ /^\s*memory[^0-9]*([0-9]+)/i ) { $mem = $1; }