blib/lib/Mojo/Netdata/Collector.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 3 | 6 | 50.0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
17 | 9 | 20 | 0 | $self->charts->{$key} //= "Mojo::Netdata::Chart"->new("module", $self->module, "id", $id, "type", $self->type, "update_every", $self->update_every) |
35 | 0 | 3 | 0 | $self->{'recurring_update_p'} //= $self->update_p->then(sub { $self->emit_data; logf("debug", "Will update in %0.3fs...", $next_time - &Mojo::Netdata::Collector::time()); return "Mojo::Promise"->timer($next_time - &Mojo::Netdata::Collector::time()); } )->then(sub { delete $self->{'recurring_update_p'}; return $self->recurring_update_p; } ) |