From 62cbfcebdf5b5069ef655c2af1581aae1e1fa2bd Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sat, 27 Mar 2021 15:11:19 +1100 Subject: [PATCH] one further nuance with counts after testing, fixed --- dups.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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