mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-11-01 02:37:48 +00:00
Fixed some pyhton issues with static class members.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
@@ -10,9 +10,11 @@ import nDPIsrvd
|
||||
from nDPIsrvd import nDPIsrvdSocket, TermColor
|
||||
|
||||
class Stats:
|
||||
lines_processed = 0
|
||||
print_dot_every = 10
|
||||
print_nmb_every = print_dot_every * 5
|
||||
|
||||
def __init__(self):
|
||||
self.lines_processed = 0
|
||||
self.print_dot_every = 10
|
||||
self.print_nmb_every = self.print_dot_every * 5
|
||||
|
||||
def onJsonLineRecvd(json_dict, instance, current_flow, global_user_data):
|
||||
validation_done = nDPIsrvd.validateAgainstSchema(json_dict)
|
||||
|
||||
Reference in New Issue
Block a user