Commit 0c2359be authored by yanzg's avatar yanzg

修改公式和计算帮助类

parent f3a26a55
......@@ -63,7 +63,8 @@ public class YzgMqProcedure implements InitializingBean {
long now = YZG_MQ_SYSTEM_QUEUE_PLAN_MIN.unit;
int count = 1;
while (now < YZG_MQ_SYSTEM_QUEUE_PLAN_MAX.unit) {
YZG_MQ_SYSTEM_QUEUE_PLAN_TIME.add(new TimeUnit(String.format("Second:%d", count), 1000));
YZG_MQ_SYSTEM_QUEUE_PLAN_TIME.add(new TimeUnit(String.format("Second:%d", count), now));
// 增加2倍
count = count * 2;
now = YZG_MQ_SYSTEM_QUEUE_PLAN_MIN.unit * count;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment