Skip to content

Commit 6454169

Browse files
committed
Also clean up sendmaps samples
1 parent 954c221 commit 6454169

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

TaskDaemon.Core/src/me/aa07/paradise/taskdaemon/core/modules/profilercleanup/ProfilerCleanupJob.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,12 @@ public void execute(JobExecutionContext event) throws JobExecutionException {
4848

4949
DbCore dbcore = dbcore_holder.get();
5050

51-
logger.info("Cleaning out profiler DB");
52-
dbcore.jooq(DatabaseType.ProfilerDb).delete(Tables.SAMPLES).where(Tables.SAMPLES.SAMPLETIME.lt(dbcore.now().minusDays(7))).execute();
51+
logger.info("Cleaning out profiler DB - proc samples");
52+
dbcore.jooq(DatabaseType.ProfilerDb).delete(Tables.SAMPLES)
53+
.where(Tables.SAMPLES.SAMPLETIME.lt(dbcore.now().minusDays(7))).execute();
54+
logger.info("Cleaning out profiler DB - sendmaps samples");
55+
dbcore.jooq(DatabaseType.ProfilerDb).delete(Tables.SENDMAPS_SAMPLES)
56+
.where(Tables.SENDMAPS_SAMPLES.SAMPLETIME.lt(dbcore.now().minusDays(7))).execute();
5357
logger.info("Cleaned");
5458
}
5559

0 commit comments

Comments
 (0)