From f0159028704016cd2cc42b125e05ff6c4b430ebe Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 27 Jun 2005 21:07:41 +0000 Subject: [PATCH] Fix bug that shifted mlfqs-recent-1 output by 1 second. Thanks to Atif Faheem for reporting this bug. --- src/tests/threads/mlfqs.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.30.2