X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Famstatus.pl;h=07e9642e1148b9e9b2ab35869ab123d9299e81db;hb=c2190a140fc0a40b9469ce497d089a27a2dfe0df;hp=538e56545c975eb6c92a7f3b78aba6e51a081065;hpb=afaa71b3866b46b082b6c895772e15b36d8865fe;p=debian%2Famanda diff --git a/server-src/amstatus.pl b/server-src/amstatus.pl index 538e565..07e9642 100644 --- a/server-src/amstatus.pl +++ b/server-src/amstatus.pl @@ -948,8 +948,8 @@ foreach $host (sort @hosts) { if( defined $starttime ) { print " (", &showtime($taper_time{$hostpart}), ")"; } - print ", ", $error{$hostpart} if defined($error{$hostpart} && - $error{$hostpart} ne ""); + print ", ", $error{$hostpart} if (defined($error{$hostpart}) && + $error{$hostpart} ne ""); print "\n"; } $tapartition++; @@ -960,6 +960,15 @@ foreach $host (sort @hosts) { else { $taesize += $size{$hostpart}; } + if (defined $dump_finished{$hostpart} && $dump_finished{$hostpart} == 1) { + $dpartition++; + $dsize += $size{$hostpart}; + if(defined $esize{$hostpart} && $esize{$hostpart} > 1) { + $desize += $esize{$hostpart}; + } else { + $desize += $size{$hostpart}; + } + } } elsif($taper_finished{$hostpart} < 0) { @@ -1014,6 +1023,15 @@ foreach $host (sort @hosts) { $wfpartition++; $wfsize += $xsize; } + if (defined $dump_finished{$hostpart} && $dump_finished{$hostpart} == 1) { + $dpartition++; + $dsize += $size{$hostpart}; + if(defined $esize{$hostpart} && $esize{$hostpart} > 1) { + $desize += $esize{$hostpart}; + } else { + $desize += $size{$hostpart}; + } + } } elsif($taper_finished{$hostpart} == 1) { if( defined $opt_finished ) { @@ -1035,17 +1053,21 @@ foreach $host (sort @hosts) { } print "\n"; } - $dpartition++; + if (defined $dump_finished{$hostpart} && $dump_finished{$hostpart} == 1) { + $dpartition++; + $dsize += $size{$hostpart}; + if(defined $esize{$hostpart} && $esize{$hostpart} > 1) { + $desize += $esize{$hostpart}; + } else { + $desize += $size{$hostpart}; + } + } $tpartition++; - $dsize += $size{$hostpart}; $tsize += $size{$hostpart}; - $desize += $esize{$hostpart}; if(defined $esize{$hostpart} && $esize{$hostpart} > 1) { - $desize += $esize{$hostpart}; $tesize += $esize{$hostpart}; } else { - $desize += $size{$hostpart}; $tesize += $size{$hostpart}; } }