[pve-devel] r6079 - qemu-server/pve2

svn-commits at proxmox.com svn-commits at proxmox.com
Wed Jun 15 09:41:08 CEST 2011


Author: dietmar
Date: 2011-06-15 09:41:08 +0200 (Wed, 15 Jun 2011)
New Revision: 6079

Modified:
   qemu-server/pve2/qm
Log:
skip undefined values


Modified: qemu-server/pve2/qm
===================================================================
--- qemu-server/pve2/qm	2011-06-15 05:55:16 UTC (rev 6078)
+++ qemu-server/pve2/qm	2011-06-15 07:41:08 UTC (rev 6079)
@@ -128,6 +128,7 @@
 	    foreach my $k (sort (keys %$stat)) {
 		next if $k eq 'cpu' || $k eq 'relcpu'; # always 0
 		my $v = $stat->{$k};
+		next if !defined($v);
 		print "$k: $v\n";
 	    }
 	} else {



More information about the pve-devel mailing list