Skip to content

Commit

Permalink
Merge pull request #1519 from p-l-/fix-merge
Browse files Browse the repository at this point in the history
Tiny enhancements / fixes for db2view
  • Loading branch information
p-l- committed May 21, 2023
2 parents c079375 + b434515 commit a68ead3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ivre/tools/db2view.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def worker_destroyer(_: None) -> None:


def main() -> None:
default_processes = max(2, cpu_count())
default_processes = max(1, cpu_count())
parser = argparse.ArgumentParser(description=__doc__, parents=[DB().argparser])
if db.nmap is None:
fltnmap = None
Expand Down
2 changes: 1 addition & 1 deletion ivre/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ def prepare_record(rec, datadb):
set_auto_tags(rec, update_openports=False)
set_openports_attribute(rec)
if datadb is not None:
rec["infos"] = {}
rec.setdefault("infos", {})
addr = rec["addr"]
for func in [
datadb.country_byip,
Expand Down

0 comments on commit a68ead3

Please sign in to comment.