mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-22 02:38:59 +00:00
Selectively compress checkpoints json data
Compression is currently enabled only on hosts
This commit is contained in:
parent
d85fc2b06b
commit
fa85749fe8
5 changed files with 104 additions and 19 deletions
|
|
@ -2984,7 +2984,7 @@ bool NetworkInterface::checkPointHostCounters(lua_State* vm, u_int8_t checkpoint
|
|||
bool ret = false;
|
||||
|
||||
if(host_ip && (h = getHost(host_ip, vlan_id)))
|
||||
h->checkpoint(vm, checkpoint_id), ret = true;
|
||||
ret = h->checkpoint(vm, checkpoint_id);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
@ -2998,9 +2998,7 @@ bool NetworkInterface::checkPointNetworkCounters(lua_State* vm, u_int8_t checkpo
|
|||
if (stats == NULL)
|
||||
return false;
|
||||
|
||||
stats->checkpoint(vm, checkpoint_id);
|
||||
|
||||
return true;
|
||||
return stats->checkpoint(vm, checkpoint_id);
|
||||
}
|
||||
|
||||
/* **************************************************** */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue