1 from .analysis
import Analysis
5 def __init__(self
, state
, split
, split_count
):
8 self
._split
_count
= split_count
10 self
._tmp
_ev
_count
= 0
12 self
._last
_reset
_hello
= state
.hello
15 self
._buckets
.append(0)
17 def process_event(self
, ev
):
19 self
._tmp
_ev
_count
+= 1
22 if self
._tmp
_ev
_count
== self
._split
_count
:
23 self
._tmp
_ev
_count
= 0
24 cur_hello_diff
= self
._state
.hello
- self
._last
_reset
_hello
25 self
._last
_reset
_hello
= self
._state
.hello
26 self
._buckets
.append(cur_hello_diff
)
28 self
._buckets
[0] = self
._state
.hello
35 def event_count(self
):
This page took 0.033888 seconds and 5 git commands to generate.