فهرست منبع

optimize the performance

Sven Czarnian 3 سال پیش
والد
کامیت
7a1d4a5959
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      aman/sys/aco/Ant.py

+ 1 - 1
aman/sys/aco/Ant.py

@@ -103,7 +103,7 @@ class Ant:
         self.Sequence.append(first)
         self.SequenceDelay += self.associateInbound(self.Configuration.Inbounds[first], self.Configuration.EarliestArrivalTime)
 
-        while True:
+        while 1:
             index = self.selectNextLandingIndex(self.Sequence[-1])
             if None == index:
                 break