Selectively compress checkpoints json data

Compression is currently enabled only on hosts
This commit is contained in:
emanuele-f 2017-11-16 17:42:29 +01:00
parent d85fc2b06b
commit fa85749fe8
5 changed files with 104 additions and 19 deletions

View file

@ -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);
}
/* **************************************************** */