From edc10519c6799aef25f309f5c39e6a0caadc6f38 Mon Sep 17 00:00:00 2001 From: John Heath <6026956+CaribouJohn@users.noreply.github.com> Date: Thu, 21 Jul 2022 18:34:06 +0100 Subject: [PATCH] fix for #1604 : use correct values in calculation --- voxygen/i18n/src/stats.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/voxygen/i18n/src/stats.rs b/voxygen/i18n/src/stats.rs index bca6c71d40..65b6e5cc1b 100644 --- a/voxygen/i18n/src/stats.rs +++ b/voxygen/i18n/src/stats.rs @@ -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 {