Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request sileht#28 from loopodoopo/master
Browse files Browse the repository at this point in the history
fixed SUMMARY_RE_MATCH to work with uptime longer then a day.
  • Loading branch information
sileht authored Oct 30, 2017
2 parents 92be35b + 53d2000 commit 5929afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lg.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def whois():


SUMMARY_UNWANTED_PROTOS = ["Kernel", "Static", "Device"]
SUMMARY_RE_MATCH = r"(?P<name>[\w_]+)\s+(?P<proto>\w+)\s+(?P<table>\w+)\s+(?P<state>\w+)\s+(?P<since>((|\d\d\d\d-\d\d-\d\d\s)(|\d\d:)\d\d:\d\d|\w\w\w\d\d))($|\s+(?P<info>.*))"
SUMMARY_RE_MATCH = r"(?P<name>[\w_]+)\s+(?P<proto>\w+)\s+(?P<table>\w+)\s+(?P<state>\w+)\s+(?P<since>((|\d\d\d\d-\d\d-\d\d\s)|(\d\d:)\d\d:\d\d|\w\w\w\d\d))($|\s+(?P<info>.*))"


@app.route("/summary/<hosts>")
Expand Down

0 comments on commit 5929afb

Please sign in to comment.