* In Hydra manifests the Size field is missing, so don't rely on it.

This caused a lot of "Use of uninitialized value" warnings from
  Perl.
This commit is contained in:
Eelco Dolstra 2010-12-22 10:32:32 +00:00
parent c931a7aec5
commit d6c8b995c5

View file

@ -222,10 +222,10 @@ if ($ARGV[0] eq "--query") {
my $u = $edge->{start};
my $v = $edge->{end};
if ($edge->{type} eq "patch") {
$downloadSize += $edge->{info}->{size};
$downloadSize += $edge->{info}->{size} || 0;
}
elsif ($edge->{type} eq "narfile") {
$downloadSize += $edge->{info}->{size};
$downloadSize += $edge->{info}->{size} || 0;
}
}