Fix wrong configentry beeing processed for hashcount

This commit is contained in:
TKE
2020-04-24 17:58:41 +02:00
parent c7d1e7cd84
commit 175dfce1f6

View File

@@ -78,7 +78,7 @@ def main():
print "[BUILDING] Calculating number of entries in Inputfile..." print "[BUILDING] Calculating number of entries in Inputfile..."
num_lines = sum(bl.count("\n") for bl in blocks(f_line)) num_lines = sum(bl.count("\n") for bl in blocks(f_line))
else: else:
num_lines=conf.getint("error_rate") num_lines=conf.getint("hash_count")
print "[BUILDING] There are {} {}s in the Database".format(num_lines,hashfile_type) print "[BUILDING] There are {} {}s in the Database".format(num_lines,hashfile_type)
with open(nsrl_path) as f_nsrl: with open(nsrl_path) as f_nsrl:
# Strip off header # Strip off header