Fix and improve network database ops

This commit is contained in:
Daniel
2020-04-20 13:57:40 +02:00
parent a33808685c
commit 92d41961e0
3 changed files with 25 additions and 34 deletions

View File

@@ -57,8 +57,7 @@ func cleanConnections() (activePIDs map[int]struct{}) {
// Step 2: mark end
activePIDs[conn.process.Pid] = struct{}{}
conn.Ended = now
// "save"
dbController.PushUpdate(conn)
conn.Save()
}
case conn.Ended < deleteOlderThan:
// Step 3: delete