Note the number of unique domains in each hosts file's header.
authorSteven Black <redacted>
Wed, 16 Mar 2016 04:33:49 +0000 (00:33 -0400)
committerSteven Black <redacted>
Wed, 16 Mar 2016 04:33:49 +0000 (00:33 -0400)
updateHostsFile.py

index cff6fe56192856d0efd873afc840ba6be8edc657..dda1b51d0ce10fa083ad33e21634cd2cc9205312 100644 (file)
@@ -370,7 +370,8 @@ def writeOpeningHeader(finalFile):
     finalFile.seek(0) #write at the top
     writeData(finalFile, '# This hosts file is a merged collection of hosts from reputable sources,\n')
     writeData(finalFile, '# with a dash of crowd sourcing via Github\n#\n')
-    writeData(finalFile, '# Date: ' + time.strftime("%B %d %Y", time.gmtime()) + '\n#\n')
+    writeData(finalFile, '# Date: ' + time.strftime("%B %d %Y", time.gmtime()) + '\n')
+    writeData(finalFile, '# Number of unique domains: ' + "{:,}".format(numberOfRules) + '\n#\n')
     writeData(finalFile, '# Fetch the latest version of this file: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts\n')
     writeData(finalFile, '# Project home page: https://github.com/StevenBlack/hosts\n#\n')
     writeData(finalFile, '# ===============================================================\n')
git clone https://git.99rst.org/PROJECT