From f7e93cf05f3b3bb477203ae8d87b1d257aaeaef1 Mon Sep 17 00:00:00 2001 From: david-ajax Date: Sun, 14 Sep 2025 23:25:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=97=A7=E7=89=88=20Textual?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reactor.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reactor.py b/reactor.py index 356a986..5e0c69b 100644 --- a/reactor.py +++ b/reactor.py @@ -13,7 +13,7 @@ class Glimpse(): self.nuc_u = nucleon_union self.elt_u = self.nuc_u.linked_electron_union() self.lastest_date = -1 - self.next_date = -1 + self.next_date = 0x3f3f3f3f self.avg_efactor = 0 self.total_num = 0 self.activated_num = 0 @@ -28,9 +28,13 @@ class Glimpse(): if i['is_activated']: self.avg_efactor += i['efactor'] self.activated_num += 1 + if self.next_date == 0x3f3f3f3f: + self.next_date = -1 if self.activated_num == 0: return self.avg_efactor = round(self.avg_efactor / self.activated_num, 2) + if self.next_date == 0x3f3f3f3f: + self.next_date = -1 return class Apparatus():