]> git.proxmox.com Git - pve-manager.git/commitdiff
pve5to6: add total count in summary
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 27 Jun 2019 17:23:05 +0000 (19:23 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 27 Jun 2019 17:48:36 +0000 (19:48 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CLI/pve5to6.pm

index e73e2b62d832e444b5b4a73d4e572e74ae1d4423..3c728e29a5330562828c3fd87cf80ad7c16ab1cd 100644 (file)
@@ -414,6 +414,11 @@ __PACKAGE__->register_method ({
        check_misc();
 
        print_header("SUMMARY");
+
+       my $total = 0;
+       $total += $_ for values %$counters;
+
+       print "TOTAL:    $total\n";
        print colored("PASSED:   $counters->{pass}\n", 'green');
        print "SKIPPED:  $counters->{skip}\n";
        print colored("WARNINGS: $counters->{warn}\n", 'yellow');