mirror of
https://github.com/clitor-is-protocol/kevacoin-cli.git
synced 2025-02-07 04:14:21 +00:00
add total pieces to debug
This commit is contained in:
parent
a2c38e32f8
commit
df30d0dbc1
15
cli/fix.php
15
cli/fix.php
@ -120,8 +120,9 @@ foreach ((array) $namespaces as $namespace)
|
|||||||
if (empty($piece->value))
|
if (empty($piece->value))
|
||||||
{
|
{
|
||||||
echo sprintf(
|
echo sprintf(
|
||||||
'Piece %s value not found, creating...' . PHP_EOL,
|
'Piece %s/%s value not found, creating...' . PHP_EOL,
|
||||||
$key
|
$key + 1,
|
||||||
|
$total
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,8 +130,9 @@ foreach ((array) $namespaces as $namespace)
|
|||||||
else if ($piece->value !== $value)
|
else if ($piece->value !== $value)
|
||||||
{
|
{
|
||||||
echo sprintf(
|
echo sprintf(
|
||||||
'Piece %s value invalid (%s <> %s), rewriting...' . PHP_EOL,
|
'Piece %s/%s value invalid (%s <> %s), rewriting...' . PHP_EOL,
|
||||||
$key,
|
$key + 1,
|
||||||
|
$total,
|
||||||
md5(
|
md5(
|
||||||
$piece->value
|
$piece->value
|
||||||
),
|
),
|
||||||
@ -144,8 +146,9 @@ foreach ((array) $namespaces as $namespace)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo sprintf(
|
echo sprintf(
|
||||||
'Piece %s - OK' . PHP_EOL,
|
'Piece %s/%s - OK' . PHP_EOL,
|
||||||
$key
|
$key + 1,
|
||||||
|
$total
|
||||||
);
|
);
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user