* 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:
parent
c931a7aec5
commit
d6c8b995c5
1 changed files with 2 additions and 2 deletions
|
@ -222,10 +222,10 @@ if ($ARGV[0] eq "--query") {
|
||||||
my $u = $edge->{start};
|
my $u = $edge->{start};
|
||||||
my $v = $edge->{end};
|
my $v = $edge->{end};
|
||||||
if ($edge->{type} eq "patch") {
|
if ($edge->{type} eq "patch") {
|
||||||
$downloadSize += $edge->{info}->{size};
|
$downloadSize += $edge->{info}->{size} || 0;
|
||||||
}
|
}
|
||||||
elsif ($edge->{type} eq "narfile") {
|
elsif ($edge->{type} eq "narfile") {
|
||||||
$downloadSize += $edge->{info}->{size};
|
$downloadSize += $edge->{info}->{size} || 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue