]> git.proxmox.com Git - qemu-server.git/commitdiff
don't compare booleans
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 3 Apr 2017 12:08:19 +0000 (14:08 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 3 Apr 2017 12:13:15 +0000 (14:13 +0200)
a) because perl isn't THAT bad of a language that you'd need
to do this and b) because JSON::XS version 2.90 "dropped"
this "feature"

PVE/QemuServer.pm

index 4c9c88cfa78f991c3097e15f0eea110ca9d93500..6865d60f321f7b2d69c178049d95a3ceb12fd1c9 100644 (file)
@@ -6020,7 +6020,7 @@ sub qemu_drive_mirror_monitor {
                    print "$job: transferred: $transferred bytes remaining: $remaining bytes total: $total bytes progression: $percent % busy: $busy ready: $ready \n";
                }
 
-               $readycounter++ if $running_mirror_jobs->{$job}->{ready} eq 'true';
+               $readycounter++ if $running_mirror_jobs->{$job}->{ready};
            }
 
            last if scalar(keys %$jobs) == 0;