jow- / nlbwmon

Simple conntrack based traffic accounting
ISC License
154 stars 34 forks source link

nlbwmon: fix db cleanup #44

Open feckert opened 3 years ago

feckert commented 3 years ago

@jow- The database will only be cleaned up when the daemon is restarted. With this change, each refresh of the database checks whether the artifacts should be cleaned up from the past database. Thus, no more than configured are kept.

This fixes https://github.com/openwrt/packages/issues/14297

jow- commented 3 years ago

You should only call database_cleanup() if the earlier database_archive() returned -ESTALE, only then there's anything to potentially clean up.

feckert commented 3 years ago

@jow- ping

schuettecarsten commented 2 years ago

@jow- ping... :-)