Skip to content

Commit

Permalink
修复一个当年偷懒实现入住顺序导致的BUG(回旋镖!)
Browse files Browse the repository at this point in the history
  • Loading branch information
Funny-ppt committed Apr 2, 2024
1 parent 93b57e6 commit ad14f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion InfrastSim/TimeDriven/OperatorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit ad14f62

Please sign in to comment.