From 227107511415605fd16561226351e2b6349f5859 Mon Sep 17 00:00:00 2001 From: JohnE Date: Wed, 4 Nov 2015 09:09:31 -0800 Subject: [PATCH] MOD: updated the percetage returned --- libs/fingerprint.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/fingerprint.py b/libs/fingerprint.py index f9c5426..7abb553 100644 --- a/libs/fingerprint.py +++ b/libs/fingerprint.py @@ -167,9 +167,10 @@ class DBSchema: diff_total += diff_num else: self.__FuzzyTable() - percentage = 0 + percentage = 100 if (diff_total > 0): - percentage = float(diff_total) / all_total + percentage = percentage - float(diff_total) / all_total + return percentage #