From aaddab2023f0da305cc383c515c5c4f3fcaf5ea8 Mon Sep 17 00:00:00 2001 From: gorhill Date: Mon, 2 Mar 2015 11:01:21 -0500 Subject: [PATCH] this fixes #916 --- src/js/cosmetic-filtering.js | 2 +- src/js/storage.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/cosmetic-filtering.js b/src/js/cosmetic-filtering.js index 1f54e0b79..e4b66eb6f 100644 --- a/src/js/cosmetic-filtering.js +++ b/src/js/cosmetic-filtering.js @@ -1199,7 +1199,7 @@ FilterContainer.prototype.retrieveDomainSelectors = function(request) { /******************************************************************************/ FilterContainer.prototype.getFilterCount = function() { - return this.acceptedCount; + return this.acceptedCount - this.duplicateCount; }; /******************************************************************************/ diff --git a/src/js/storage.js b/src/js/storage.js index f3d358966..beb3edeed 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -288,7 +288,7 @@ if ( µb.remoteBlacklists.hasOwnProperty(path) ) { var entry = µb.remoteBlacklists[path]; entry.entryCount = snfe.acceptedCount + cfe.acceptedCount - acceptedCount; - entry.entryUsedCount = entry.entryCount - snfe.duplicateCount - cfe.duplicateCount + duplicateCount; + entry.entryUsedCount = entry.entryCount - (snfe.duplicateCount + cfe.duplicateCount - duplicateCount); } };