Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19sp
lab03
Commits
a28936f1
Commit
a28936f1
authored
5 years ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Updates
parent
20d955aa
master
No related merge requests found
Pipeline
#19471
failed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config.h
+1
-1
config.h
mdriver.c
+3
-2
mdriver.c
with
4 additions
and
3 deletions
+4
-3
config.h
View file @
a28936f1
...
...
@@ -45,7 +45,7 @@
* Students can get more points for building faster allocators, up to
* this point (in ops / sec)
*/
#define MAX_SPEED 4
2
000E3
#define MAX_SPEED 4
0
000E3
/*
* Students get 0 points for this allocation fraction or below
...
...
This diff is collapsed.
Click to expand it.
mdriver.c
View file @
a28936f1
...
...
@@ -429,8 +429,9 @@ int main(int argc, char **argv)
p2
*
100
,
perfindex
);
const
double
BUMP
=
30
;
double
perfscore
=
perfindex
-
BUMP
;
const
double
BUMP
=
40
;
const
double
SCALE
=
1
;
double
perfscore
=
perfindex
-
BUMP
+
SCALE
;
if
(
perfscore
<=
0
)
{
perfscore
=
0
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help