Commit 40fe79c4 authored by Dietmar Maurer's avatar Dietmar Maurer

fix pool stats

parent 4aefa8e7
......@@ -182,7 +182,7 @@ __PACKAGE__->register_method({
my $data = $idlist->{$vmid};
my $entry = PVE::API2Tools::extract_vm_stats($vmid, $data, $rrd);
if (defined($entry->{uptime})) {
if ($entry->{uptime}) {
if (my $pool = $usercfg->{vms}->{$vmid}) {
if (my $pe = $pooldata->{$pool}) {
$pe->{uptime} = $entry->{uptime} if !$pe->{uptime} || $entry->{uptime} > $pe->{uptime};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment