remove incorrect totals from dump

This commit is contained in:
yggverse 2024-06-28 22:10:25 +03:00
parent 0f1cc4f576
commit 090c930c7b

View file

@ -16,8 +16,6 @@ use \Yggverse\Net\Address;
class Cli
{
// Init totals
public int $skip = 0;
public int $fail = 0;
public int $save = 0;
public int $size = 0;
public float $time = 0;
@ -202,9 +200,6 @@ class Cli
// Parse gemtext
if (!$raw && $this->option->crawl)
{
// Reset skipped links
$skip = 0;
// Parse gemtext content
$document = new Document(
$response->getBody()
@ -226,10 +221,6 @@ class Cli
// Check link match common source rules, @TODO --external links
if (!$this->_source($address->get()) || $address->getHost() != $source->getHost())
{
$skip++;
$this->skip += $skip;
continue;
}
@ -286,8 +277,6 @@ class Cli
_("\tfail: ") . $filename
)
);
$this->fail++;
}
// Crawl mode enabled
@ -367,18 +356,6 @@ class Cli
$this->save
)
),
Message::magenta(
sprintf(
_("\tskip: %d"),
$this->skip
)
),
Message::magenta(
sprintf(
_("\tfail: %d"),
$this->fail
)
),
Message::magenta(
sprintf(
_("\tsize: %d"),