mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-02 08:15:22 +00:00
server replay: expose the replay.server.count command
This commit is contained in:
parent
204726349d
commit
42b04a5413
@ -99,6 +99,7 @@ class ServerPlayback:
|
|||||||
self.flowmap = {}
|
self.flowmap = {}
|
||||||
ctx.master.addons.trigger("update", [])
|
ctx.master.addons.trigger("update", [])
|
||||||
|
|
||||||
|
@command.command("replay.server.count")
|
||||||
def count(self):
|
def count(self):
|
||||||
return sum([len(i) for i in self.flowmap.values()])
|
return sum([len(i) for i in self.flowmap.values()])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user