]> git.proxmox.com Git - pve-cluster.git/commitdiff
rrd_dump: filter undefined values encodes as 'U'
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 17 Mar 2017 10:58:40 +0000 (11:58 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 17 Mar 2017 10:58:40 +0000 (11:58 +0100)
data/PVE/Cluster.pm

index 39708c84fe838a132236e132e7d726d08f73825d..ab57da9f33aa924706c57f86725d88fde406f345 100644 (file)
@@ -608,7 +608,7 @@ sub rrd_dump {
            my ($key, @ela) = split(/:/, $1);
            next if !$key;
            next if !(scalar(@ela) > 1);
-           $res->{$key} = \@ela;
+           $res->{$key} = [ map { $_ eq 'U' ? undef : $_ } @ela ];
        }
     }