MOD: updated the percetage returned

This commit is contained in:
JohnE 2015-11-04 09:09:31 -08:00
parent 3242b7896f
commit 2271075114
1 changed files with 3 additions and 2 deletions

View File

@ -167,9 +167,10 @@ class DBSchema:
diff_total += diff_num diff_total += diff_num
else: else:
self.__FuzzyTable() self.__FuzzyTable()
percentage = 0 percentage = 100
if (diff_total > 0): if (diff_total > 0):
percentage = float(diff_total) / all_total percentage = percentage - float(diff_total) / all_total
return percentage return percentage
# #