| line |
true |
false |
branch |
|
33
|
0 |
30 |
if ($VERSION =~ /^\d\.\d\.99(\d\d)/) |
|
68
|
0 |
1 |
$config->{'debug'} && $config->{'debug'} == 2 ? : |
|
|
0 |
1 |
$config->{'debug'} && $config->{'debug'} == 1 ? : |
|
91
|
1 |
0 |
unless $self->{'deviceid'} |
|
97
|
0 |
1 |
unless ($self->getTargets) |
|
109
|
0 |
1 |
unless (@tasks) |
|
126
|
0 |
1 |
if ($config->{'daemon'}) |
|
131
|
0 |
1 |
if ($config->{'daemon'} || $config->{'service'} and not $config->{'no-httpd'}) |
|
139
|
0 |
1 |
if $self->{'config'}{'daemon'} or $self->{'config'}{'service'} |
|
142
|
0 |
1 |
if $self->{'config'}->isParamArrayAndFilled('no-task') and $self->{'config'}->isParamArrayAndFilled('tasks') |
|
157
|
0 |
1 |
$config->{'debug'} && $config->{'debug'} == 2 ? : |
|
|
0 |
1 |
$config->{'debug'} && $config->{'debug'} == 1 ? : |
|
161
|
0 |
1 |
if (not defined $self->{'logger'}) { } |
|
180
|
0 |
1 |
unless $self->{'deviceid'} |
|
184
|
0 |
1 |
unless ($self->getTargets) |
|
196
|
0 |
1 |
unless (@tasks) |
|
231
|
0 |
0 |
if ($self->{'config'}{'daemon'} or $self->{'config'}{'service'}) { } |
|
240
|
0 |
0 |
unless @targets |
|
245
|
0 |
0 |
if ($time >= $target->getNextRunDate) |
|
250
|
0 |
0 |
if $FusionInventory::Agent::EVAL_ERROR |
|
254
|
0 |
0 |
unless $self->getTargets |
|
257
|
0 |
0 |
if ($self->{'server'}) { } |
|
259
|
0 |
0 |
unless $self->{'server'}->handleRequests |
|
272
|
0 |
0 |
if ($self->{'config'}{'lazy'} and $time < $target->getNextRunDate) |
|
283
|
0 |
0 |
if $FusionInventory::Agent::EVAL_ERROR |
|
295
|
0 |
0 |
if ($self->{'current_runtask'}) |
|
301
|
0 |
0 |
if $self->{'config'}{'daemon'} or $self->{'config'}{'service'} |
|
302
|
0 |
0 |
if $self->{'current_task'} |
|
305
|
0 |
0 |
if $self->{'sigterm'} |
|
311
|
0 |
0 |
if defined $self->{'logger'} |
|
315
|
0 |
0 |
if ($target->isa('FusionInventory::Agent::Target::Server')) |
|
336
|
0 |
0 |
unless $response |
|
340
|
0 |
0 |
if (defined $content->{'PROLOG_FREQ'}) |
|
349
|
0 |
0 |
if $FusionInventory::Agent::EVAL_ERROR |
|
353
|
0 |
0 |
unless $self->getTargets |
|
362
|
0 |
0 |
if ($self->{'config'}{'daemon'} or $self->{'config'}{'service'}) { } |
|
364
|
0 |
0 |
if (my $pid = fork) { } |
|
368
|
0 |
0 |
if ($self->{'server'}) { } |
|
369
|
0 |
0 |
unless $self->{'server'}->handleRequests |
|
375
|
0 |
0 |
unless $self->getTargets |
|
380
|
0 |
0 |
unless defined $pid |
|
408
|
0 |
0 |
unless $task->isEnabled($response) |
|
447
|
0 |
30 |
unless $file =~ m[($subdirectory/(\S+)\.pm)$] |
|
451
|
1 |
29 |
if $disabled{lc $name} |
|
454
|
0 |
29 |
if ($self->{'config'}{'daemon'} or $self->{'config'}{'service'}) { } |
|
460
|
0 |
0 |
if (my $pid = fork) { } |
|
468
|
0 |
0 |
unless defined $pid |
|
472
|
0 |
0 |
if $version |
|
482
|
11 |
18 |
unless $version |
|
485
|
6 |
12 |
if (defined $self->{'logger'}) |
|
498
|
6 |
23 |
unless ($module->require) |
|
499
|
2 |
4 |
if $logger |
|
503
|
5 |
18 |
unless ($module->isa('FusionInventory::Agent::Task')) |
|
504
|
2 |
3 |
if $logger |
|
521
|
0 |
0 |
if ($FusionInventory::Agent::EVAL_ERROR) |
|
538
|
1 |
1 |
if $data->{'deviceid'} |
|
566
|
0 |
2 |
unless (UNIVERSAL::isa($list, 'ARRAY')) |
|
567
|
0 |
0 |
if defined $logger |
|
570
|
0 |
2 |
if (UNIVERSAL::isa($elements, 'HASH')) { } |
|
|
0 |
2 |
elsif (not UNIVERSAL::isa($elements, 'ARRAY')) { } |
|
573
|
0 |
0 |
if defined $logger |
|
591
|
0 |
3 |
unless (defined $self->{'config'} and UNIVERSAL::isa($self->{'config'}, 'FusionInventory::Agent::Config')) |
|
592
|
0 |
0 |
if defined $self->{'logger'} |
|
597
|
2 |
1 |
if ($self->{'config'}->isParamArrayAndFilled('tasks')) { } |
|
598
|
2 |
0 |
if defined $self->{'logger'} |
|
601
|
1 |
0 |
if defined $self->{'logger'} |
|
617
|
1 |
45 |
if ($task eq $CONTINUE_WORD) |
|
621
|
25 |
20 |
if (defined $available{$task}) |
|
626
|
1 |
5 |
if (defined $task and $task eq $CONTINUE_WORD) |
|
645
|
1 |
0 |
if ($config->{'local'}) |
|
659
|
1 |
0 |
if ($config->{'server'}) |
|
681
|
0 |
0 |
if ($self->_isAlreadyRunning($pidfile)) |
|
685
|
0 |
0 |
if (not $config->{'no-fork'}) |
|
688
|
0 |
0 |
if ($FusionInventory::Agent::EVAL_ERROR) |
|
694
|
0 |
0 |
substr($self->{'libdir'}, 0, 1) eq '/' ? : |
|
711
|
0 |
0 |
if ($FusionInventory::Agent::EVAL_ERROR) { } |
|
736
|
0 |
0 |
if ($self->_isReloadConfNeeded) |