| line |
true |
false |
branch |
|
17
|
0 |
0 |
unless ($limit_bps) |
|
25
|
0 |
0 |
if $elapsed < $CHECK_INTERVAL_SECOND |
|
27
|
0 |
0 |
if ($sleep > 0) |
|
38
|
0 |
0 |
unless ($limit_bps) |
|
41
|
0 |
0 |
if (not defined $len) { } |
|
|
0 |
0 |
elsif ($len == 0) { } |
|
55
|
0 |
0 |
if (not defined $len) { } |
|
|
0 |
0 |
elsif ($len == 0) { } |
|
62
|
0 |
0 |
if ($elapsed > $CHECK_INTERVAL_SECOND) |
|
64
|
0 |
0 |
if ($sleep > 0) |
|
79
|
0 |
0 |
if ($args->{'content_file'} or $args->{'content_fh'}) |
|
81
|
0 |
0 |
unless ($fh) |
|
83
|
0 |
0 |
unless open $fh, '<', $file |
|
94
|
0 |
0 |
if (my $download_limit_bps = $args->{'download_limit_bps'}) |
|
95
|
0 |
0 |
if ($args->{'data_callback'}) |
|
106
|
0 |
0 |
if ($set_bandwidth_data_callback) |
|
108
|
0 |
0 |
if (length($res->{'content'} || '') == 0) |
|
118
|
0 |
0 |
unless @_ == 3 or @_ == 4 and ref $args eq 'HASH' |
|
120
|
0 |
0 |
if (-e $file and my $mtime = (stat $file)[9]) |
|
126
|
0 |
0 |
unless sysopen my $fh, $tempfile, 193 |
|
132
|
0 |
0 |
unless close $fh |
|
135
|
0 |
0 |
if ($response->{'success'}) |
|
136
|
0 |
0 |
unless rename $tempfile, $file |
|
139
|
0 |
0 |
if ($lm and my $mtime = $self->_parse_http_date($lm)) |