aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/addons
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2018-05-02 09:32:27 +1200
committerAldo Cortesi <aldo@corte.si>2018-05-02 09:43:42 +1200
commite96340843401d677d5e8272d562b48fe4358362a (patch)
tree6ffa74488dae93f71c57919189cb83444db017cb /mitmproxy/addons
parent42b04a54131c9abeecf3c8a3a7207645e01a9fc1 (diff)
downloadmitmproxy-e96340843401d677d5e8272d562b48fe4358362a.tar.gz
mitmproxy-e96340843401d677d5e8272d562b48fe4358362a.tar.bz2
mitmproxy-e96340843401d677d5e8272d562b48fe4358362a.zip
console: use replay count commands in statusbar
Also add a periodic refresh every 0.5 seconds for the statusbar. This is in addition to refreshes upon event update notifications, and picks up replay status changes not linked to flow events.
Diffstat (limited to 'mitmproxy/addons')
-rw-r--r--mitmproxy/addons/serverplayback.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/addons/serverplayback.py b/mitmproxy/addons/serverplayback.py
index ce0705ef..efc7d359 100644
--- a/mitmproxy/addons/serverplayback.py
+++ b/mitmproxy/addons/serverplayback.py
@@ -100,7 +100,7 @@ class ServerPlayback:
ctx.master.addons.trigger("update", [])
@command.command("replay.server.count")
- def count(self):
+ def count(self) -> int:
return sum([len(i) for i in self.flowmap.values()])
def _hash(self, flow):