From 3c4c92cdb208162efa7ac8ea8313a426f19ddb11 Mon Sep 17 00:00:00 2001 From: Alexander Bersenev Date: Tue, 8 Oct 2019 14:42:03 +0500 Subject: [PATCH] adjust stats duration bucket sizes --- mtprotoproxy.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mtprotoproxy.py b/mtprotoproxy.py index a0e13d6..44ea72e 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -76,10 +76,7 @@ PADDING_FILLER = b"\x04\x00\x00\x00" MIN_MSG_LEN = 12 MAX_MSG_LEN = 2 ** 24 -STAT_DURATION_BUCKETS = [ - 0.1, 0.25, 0.5, 0.75, 1, 2, 3, 5, 10, 15, 20, 60, 120, 300, 600, 1800, 3600, 7200, - 3600*24*365*1000 -] +STAT_DURATION_BUCKETS = [0.1, 0.5, 1, 2, 5, 15, 60, 300, 600, 1800, 2**31 - 1] my_ip_info = {"ipv4": None, "ipv6": None} used_handshakes = collections.OrderedDict()