Additionsl inc/dec uses fixes

This commit is contained in:
Simone Mainardi 2019-10-24 17:28:57 +02:00
parent c29409673b
commit 02464a9536
12 changed files with 37 additions and 51 deletions

View file

@ -40,16 +40,10 @@ AutonomousSystem::AutonomousSystem(NetworkInterface *_iface, IpAddress *ipa) : G
/* *************************************** */
void AutonomousSystem::set_hash_entry_state_idle() {
AutonomousSystem::~AutonomousSystem() {
if(ntop->getPrefs()->is_idle_local_host_cache_enabled())
serializeToRedis();
GenericHashEntry::set_hash_entry_state_idle();
}
/* *************************************** */
AutonomousSystem::~AutonomousSystem() {
if(asname) free(asname);
/* TODO: decide if it is useful to dump AS stats to redis */