projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba31dc3
)
Fix bug that shifted mlfqs-recent-1 output by 1 second.
author
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 27 Jun 2005 21:07:41 +0000
(21:07 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 27 Jun 2005 21:07:41 +0000
(21:07 +0000)
Thanks to Atif Faheem for reporting this bug.
src/tests/threads/mlfqs.pm
patch
|
blob
|
history
diff --git
a/src/tests/threads/mlfqs.pm
b/src/tests/threads/mlfqs.pm
index 4de61b2e17d265b11150d14c846f59085208c62d..2ca7d09c531d7f0dc4ea55ae4e0f6aa576fcda51 100644
(file)
--- 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) {