This commit is contained in:
shahaibo
2024-03-27 13:28:48 +08:00
parent db68ce7d1b
commit 54fe254ab0
5 changed files with 41 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ public class MyTaskScheduler {
Long currentTimestamp = System.currentTimeMillis();
// 计算时间差(毫秒)
long timeDifference = currentTimestamp - timestamp;
long timeDifference = timestamp - currentTimestamp;
if (timeDifference < 0) {
continue;