Browse Source

[mod_trigger_b4_dl] gdbm_reorganize once a day

master
Glenn Strauss 9 months ago
parent
commit
4250de77d3
  1. 2
      src/mod_trigger_b4_dl.c

2
src/mod_trigger_b4_dl.c

@ -536,7 +536,7 @@ static void mod_trigger_b4_dl_trigger_gdbm(GDBM_FILE db, const time_t cur_ts, co
if (okey.dptr) free(okey.dptr);
/* reorg once a day */
if ((cur_ts % (60 * 60 * 24) != 0)) gdbm_reorganize(db);
if ((cur_ts % (60 * 60 * 24) == 0)) gdbm_reorganize(db);
}
TRIGGER_FUNC(mod_trigger_b4_dl_handle_trigger) {

Loading…
Cancel
Save