[pve-devel] [PATCH 03/10] pvestatd : add template value to rrd

Alexandre Derumier aderumier at odiso.com
Tue Jan 22 10:14:05 CET 2013


we need it for resourcestore

Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 bin/pvestatd |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/pvestatd b/bin/pvestatd
index 4565f7b..2aa7c5a 100755
--- a/bin/pvestatd
+++ b/bin/pvestatd
@@ -228,7 +228,7 @@ sub update_qemu_status {
 	my $d = $vmstatus->{$vmid};
 	my $data;
 	my $status = $d->{qmpstatus} || $d->{status} || 'stopped';
-	my $template = 0;
+	my $template = $d->{template} ? $d->{template} : "0";
 	if ($d->{pid}) { # running
 	    $data = "$d->{uptime}:$d->{name}:$status:$template:" .
 		"$ctime:$d->{cpus}:$d->{cpu}:" .
-- 
1.7.10.4




More information about the pve-devel mailing list