From fb19bd3457b08d86fa840de50f40dbd931b40371 Mon Sep 17 00:00:00 2001 From: RogerWork Date: Fri, 7 Feb 2025 18:22:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=95=BF=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=B8=A6=E7=9A=84=E7=9A=84=E5=BB=B6=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- get_jd_timestamp.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/get_jd_timestamp.py b/get_jd_timestamp.py index 4c18a64..1aea010 100644 --- a/get_jd_timestamp.py +++ b/get_jd_timestamp.py @@ -25,7 +25,11 @@ def jd_timer(target): jd_ts, delay = get_jd_time() while jd_ts < target_timestamp: delta = target_timestamp - jd_ts - if delta > 120*1000: + if delta > 3600*1000: + time.sleep(3600) + elif delta > 600*1000: + time.sleep(600) + elif delta > 120*1000: time.sleep(60) elif delta > 60*1000: time.sleep(30)