- Fix bug in FCFS. Thanks, Filippo.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1126 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
b4dd5d592c
commit
9c50d712f3
4 changed files with 11 additions and 8 deletions
|
@ -42,6 +42,6 @@ the simplest of them all."""
|
|||
|
||||
def sort_queue(self, queue):
|
||||
cmpf = lambda a, b: \
|
||||
a.get_arrival_time() <= \
|
||||
b.get_arrival_time()
|
||||
a.get_arrival_time() + a.get_process().get_arrival_time() <= \
|
||||
b.get_arrival_time() + b.get_process().get_arrival_time()
|
||||
self.sort(queue,cmpf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue