Add coverage details human vs. total

This commit is contained in:
Ilia Ross 2025-02-08 04:36:29 +02:00
parent d768c81dc3
commit e213a9f5f7
No known key found for this signature in database
GPG Key ID: 121E166DD9C821AB

View File

@ -1973,14 +1973,17 @@ sub show_stats
$human,
$auto,
$missing,
sprintf("%.1f%%", ($human + $auto) * 100 / $total_keys)
sprintf("%5.1f%% / %5.1f%%",
$human * 100 / $total_keys,
($human + $auto) * 100 / $total_keys)
];
}
# Display results
if (@rows) {
my $table = Term::Table->new(
header => ['Language', 'Human', 'Machine', 'Missing', 'Coverage'],
header => ['Language', 'Human', 'Machine', 'Missing',
'Coverage (Human vs. Total)'],
rows => \@rows,
style => 'box',
);