diff --git a/dups.py b/dups.py index 9f153a3..d8efcb9 100644 --- a/dups.py +++ b/dups.py @@ -251,7 +251,11 @@ class Duplicates: if self.AddDupPath( hash ): self.total_dups += 2 else: - self.total_dups += 1 + # okay, if we are here, this path combo is also in an IP <-> SP combo. + # IF, this dup we tried to add was in SP<->SP, then there + # is another dup to count, if its IP<->IP (as we append these to the del list), then nothing further to count + if self.InStoragePath(self.dups_to_process[hash][0].d): + self.total_dups += 1 return # quick debugger to see the data in the data structure