Lines Matching defs:mg
73 def count_manifest(mg, d):
79 manifest_by_ip[mg["ip"]] += 1
81 manifest_by_ip[mg["ip"]] = 1
83 pm = pkg_pat.search(mg["uri"])
84 if pm != None and mg["response"] == "200":
97 agent = pkg_agent_pat.search(mg["agent"])
136 mg = m.groupdict()
140 if lastdatetime and mg["date"] == lastdate:
144 d = datetime.datetime(*(time.strptime(mg["date"], "%d/%b/%Y")[0:6]))
145 lastdate = mg["date"]
155 count_manifest(mg, d)