diff --git a/plugins/pyloader/src/builtin-policies/sjf.py b/plugins/pyloader/src/builtin-policies/sjf.py index a6500a3..0b460d5 100644 --- a/plugins/pyloader/src/builtin-policies/sjf.py +++ b/plugins/pyloader/src/builtin-policies/sjf.py @@ -43,6 +43,6 @@ class sjf(Policy) : def sort_queue(self, queue): cmpf = lambda a, b: \ - a.get_remaining_time() < \ - b.get_remaining_time() + a.get_total_cpu_time() - a.get_elapsed_time() < \ + b.get_total_cpu_time() - b.get_elapsed_time() self.sort(queue,cmpf)