]> git.proxmox.com Git - pve-manager.git/commitdiff
pvestatd : add template value to rrd
authorAlexandre Derumier <aderumier@odiso.com>
Thu, 14 Feb 2013 11:03:58 +0000 (12:03 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 15 Feb 2013 09:21:31 +0000 (10:21 +0100)
we need it for resourcestore

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
bin/pvestatd

index 4565f7b20847b213a04ea67bf59986ecf27251fb..2aa7c5a5bfd43b104604d4c3e5333d6f29928ab1 100755 (executable)
@@ -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}:" .