Skip to content

Commit

Permalink
nlbwmon: fix db cleanup
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Florian Eckert <[email protected]>
  • Loading branch information
feckert committed Mar 1, 2021
1 parent 34a1887 commit 5d91e8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nlbwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ handle_refresh(struct uloop_timeout *tm)
}

database_save(gdbh, opt.tempdir, 0, false);

database_cleanup();
}

static int
Expand Down

0 comments on commit 5d91e8f

Please sign in to comment.