Commit 4e07bb5e by manxiaoqiang

显示

parent 77bd13a8
......@@ -75,9 +75,11 @@ public class AccountTask {
account4Web.setTrackStatus(restrict4Web.getTrackFlowNotified());
double f = 1.0;
if((account4Web.getIo().doubleValue() != 0) && (null != account4Web.getIoLimit())){
if((account4Web.getIo().doubleValue() / account4Web.getIoLimit().doubleValue()) > f){
if(account4Web.getIo().doubleValue() > account4Web.getIoLimit().doubleValue()){
account4Web.setIoStatus(false);
account4Web.setStatus("流量用尽");
}else{
account4Web.setIoStatus(true);
}
}else {
account4Web.setIoStatus(true);
......
......@@ -12,7 +12,7 @@
<bean id="tkioAccountTask" class="tkio.task.AccountTask"></bean>
<task:scheduled-tasks>
<!--//定时同步短链数据(每5分钟执行一次)-->
<task:scheduled ref="tkioAccountTask" method="task" cron="0 5 8 * * ?"/>
<task:scheduled ref="tkioAccountTask" method="task" cron="0 11 8 * * ?"/>
</task:scheduled-tasks>
<bean id="tkioNoticeTask" class="tkio.task.NoticeTask"></bean>
......
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