update m2pool 关闭alph幸运值定时任务,monero 币 首页 数据最后一天不再补充

This commit is contained in:
yyb
2026-01-22 16:48:50 +08:00
parent 33231bed63
commit db5af51af6
2 changed files with 2 additions and 2 deletions

View File

@@ -262,7 +262,7 @@ public class PoolServiceImpl implements PoolService {
Date now = DateUtils.parseDate(DateUtils.dateTimeNow(DateUtils.YYYY_MM_DD)); Date now = DateUtils.parseDate(DateUtils.dateTimeNow(DateUtils.YYYY_MM_DD));
lastPLDto.setDate(now); lastPLDto.setDate(now);
lastPLDto.setPv(mhs); lastPLDto.setPv(mhs);
list.add(lastPLDto); //list.add(lastPLDto);
//根据集合中最大算力一个对象转换的后单位,把集合中所有元素都转换成该单位 //根据集合中最大算力一个对象转换的后单位,把集合中所有元素都转换成该单位
PowerLineDto maxPv = list.stream().max(Comparator.comparing(PowerLineDto::getPv)).orElse(new PowerLineDto()); PowerLineDto maxPv = list.stream().max(Comparator.comparing(PowerLineDto::getPv)).orElse(new PowerLineDto());
PowerUnitUtils.NetPowerUnit powerUnit = PowerUnitUtils.getPowerUnit(maxPv.getPv() .multiply(BigDecimal.valueOf(1000 * 1000))); PowerUnitUtils.NetPowerUnit powerUnit = PowerUnitUtils.getPowerUnit(maxPv.getPv() .multiply(BigDecimal.valueOf(1000 * 1000)));

View File

@@ -3960,7 +3960,7 @@ public class DataTask {
} }
//@Scheduled(cron = "30 2,7 0,12 * * ?") //@Scheduled(cron = "30 2,7 0,12 * * ?")
@Scheduled(cron = "42 2,5 0/12 * * ?") //@Scheduled(cron = "42 2,5 0/12 * * ?")
public void ALPHLuckyDataToDB(){ public void ALPHLuckyDataToDB(){
if(!enable){ if(!enable){
return; return;