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:
Marcel 2022-07-21 18:29:18 +00:00
commit 79dc450e1e

View File

@ -110,7 +110,8 @@ pub(crate) fn print_translation_stats(
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 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
if be_verbose {