Fixed some pyhton issues with static class members.

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2022-03-08 14:17:24 +01:00
parent d0985a5732
commit 6f1f9e65ea
5 changed files with 87 additions and 80 deletions

View File

@@ -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)