mirror of
https://gitlab.com/veloren/veloren.git
synced 2025-07-25 04:42:23 +00:00
Merge branch 'CaribouJohn/fix-untranslated-perc' into 'master'
fix for #1604 : use correct values in calculation See merge request veloren/veloren!3489
This commit is contained in:
@ -110,7 +110,8 @@ pub(crate) fn print_translation_stats(
|
|||||||
let real_entry_count = stats.get_real_entry_count() as f32;
|
let real_entry_count = stats.get_real_entry_count() as f32;
|
||||||
let uptodate_percent = (stats.uptodate_entries as f32 / real_entry_count) * 100_f32;
|
let uptodate_percent = (stats.uptodate_entries as f32 / real_entry_count) * 100_f32;
|
||||||
let outdated_percent = (stats.outdated_entries as f32 / real_entry_count) * 100_f32;
|
let outdated_percent = (stats.outdated_entries as f32 / real_entry_count) * 100_f32;
|
||||||
let untranslated_percent = ((stats.errors + stats.errors) as f32 / real_entry_count) * 100_f32;
|
let untranslated_percent =
|
||||||
|
((stats.notfound_entries + stats.errors) as f32 / real_entry_count) * 100_f32;
|
||||||
|
|
||||||
// Display
|
// Display
|
||||||
if be_verbose {
|
if be_verbose {
|
||||||
|
Reference in New Issue
Block a user