From e75a5310d04477471ffebbe007b321d6b6ab33ca Mon Sep 17 00:00:00 2001 From: vinhn Date: Fri, 21 Oct 2016 14:14:16 -0700 Subject: [PATCH] Honor when flush task is run via property --- .../java/com/netflix/priam/cluster/management/FlushTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/priam/src/main/java/com/netflix/priam/cluster/management/FlushTask.java b/priam/src/main/java/com/netflix/priam/cluster/management/FlushTask.java index 7c3a8c2a6..db9566a81 100644 --- a/priam/src/main/java/com/netflix/priam/cluster/management/FlushTask.java +++ b/priam/src/main/java/com/netflix/priam/cluster/management/FlushTask.java @@ -87,7 +87,7 @@ public static TaskTimer getTimer(IConfiguration config) { Integer time = new Integer(s[1]); if (name.equalsIgnoreCase("hour")) { - return new CronTimer(0, 0); //minute, sec after each hour + return new CronTimer(time, 0); //minute, sec after each hour } if (name.equalsIgnoreCase("daily")) { return new CronTimer(time, 0 , 0); //hour, minute, sec to run on a daily basis } else {