From: Ben Pfaff Date: Mon, 27 Jun 2005 21:07:41 +0000 (+0000) Subject: Fix bug that shifted mlfqs-recent-1 output by 1 second. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0159028704016cd2cc42b125e05ff6c4b430ebe;p=pintos-anon Fix bug that shifted mlfqs-recent-1 output by 1 second. Thanks to Atif Faheem for reporting this bug. --- diff --git a/src/tests/threads/mlfqs.pm b/src/tests/threads/mlfqs.pm index 4de61b2..2ca7d09 100644 --- a/src/tests/threads/mlfqs.pm +++ b/src/tests/threads/mlfqs.pm @@ -4,7 +4,8 @@ use warnings; sub mlfqs_expected_load { my ($ready, $recent_delta) = @_; - my (@load_avg, @recent_cpu); + my (@load_avg) = 0; + my (@recent_cpu) = 0; my ($load_avg) = 0; my ($recent_cpu) = 0; for my $i (0...$#$ready) {