mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-07 22:18:04 +00:00
HTTP:serialize() always resets counters w/o relying on the constructor
This commit is contained in:
parent
25740572af
commit
bb0b4f51cc
1 changed files with 5 additions and 0 deletions
|
|
@ -347,6 +347,11 @@ void HTTPstats::deserialize(json_object *my_object) {
|
|||
|
||||
if(!my_object) return;
|
||||
|
||||
memset(&query, 0, sizeof(query));
|
||||
memset(&response, 0, sizeof(response));
|
||||
memset(&query_rate, 0, sizeof(query_rate));
|
||||
memset(&response_rate, 0, sizeof(response_rate));
|
||||
|
||||
for (u_int8_t direction = 0; direction < 2; direction++){
|
||||
u_int8_t d = direction == AS_SENDER ? AS_SENDER : AS_RECEIVER;
|
||||
q = &query[d];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue