From ad14f62ab4ca5c8005263f105ac882bde21a13b9 Mon Sep 17 00:00:00 2001 From: Funny-ppt <1763341376@qq.com> Date: Tue, 2 Apr 2024 17:35:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA=E5=BD=93?= =?UTF-8?q?=E5=B9=B4=E5=81=B7=E6=87=92=E5=AE=9E=E7=8E=B0=E5=85=A5=E4=BD=8F?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F=E5=AF=BC=E8=87=B4=E7=9A=84BUG=EF=BC=88?= =?UTF-8?q?=E5=9B=9E=E6=97=8B=E9=95=96=EF=BC=81=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- InfrastSim/TimeDriven/OperatorBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InfrastSim/TimeDriven/OperatorBase.cs b/InfrastSim/TimeDriven/OperatorBase.cs index 519884c..2ab3904 100644 --- a/InfrastSim/TimeDriven/OperatorBase.cs +++ b/InfrastSim/TimeDriven/OperatorBase.cs @@ -81,7 +81,7 @@ public virtual void QueryInterest(Simulator simu) { if (Facility is not Dormitory && !IsTired) { foreach (var threshold in WorkingTimeThresholds) { if (threshold > WorkingTime) { - seconds = Math.Min(seconds, (threshold - WorkingTime).TotalSeconds()); + seconds = Math.Min(seconds, threshold.TotalSeconds() - WorkingTime.TotalSeconds()); break; } }