projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5aede12
)
Cosmetic fix: make first column wider to account for longer names in p4.
author
Godmar Back
<godmar@gmail.com>
Sun, 7 Jan 2007 21:38:02 +0000
(21:38 +0000)
committer
Godmar Back
<godmar@gmail.com>
Sun, 7 Jan 2007 21:38:02 +0000
(21:38 +0000)
src/tests/make-grade
patch
|
blob
|
history
diff --git
a/src/tests/make-grade
b/src/tests/make-grade
index 5f60fa3d1fe7edddbed270886228e6bd5881548a..a3faa0ebd560ac1f5af6b1180a50f489125860ca 100755
(executable)
--- a/
src/tests/make-grade
+++ b/
src/tests/make-grade
@@
-72,7
+72,7
@@
while (<GRADING>) {
push (@rubrics, '');
my ($pct) = ($score / $possible) * $max_pct;
push (@rubrics, '');
my ($pct) = ($score / $possible) * $max_pct;
- push (@summary, sprintf ("%-4
0
s %3d/%3d %5.1f%%/%5.1f%%",
+ push (@summary, sprintf ("%-4
5
s %3d/%3d %5.1f%%/%5.1f%%",
$rubric_suffix,
$score, $possible,
$pct, $max_pct));
$rubric_suffix,
$score, $possible,
$pct, $max_pct));
@@
-82,16
+82,16
@@
while (<GRADING>) {
close GRADING;
my ($sum_line)
close GRADING;
my ($sum_line)
- = "---------------------------------------- --- --- ------ ------";
+ = "----------------------------------------
-----
--- --- ------ ------";
unshift (@summary,
"SUMMARY BY TEST SET",
'',
unshift (@summary,
"SUMMARY BY TEST SET",
'',
- sprintf ("%-4
0
s %3s %3s %6s %6s",
+ sprintf ("%-4
5
s %3s %3s %6s %6s",
"Test Set", "Pts", "Max", "% Ttl", "% Max"),
$sum_line);
push (@summary,
$sum_line,
"Test Set", "Pts", "Max", "% Ttl", "% Max"),
$sum_line);
push (@summary,
$sum_line,
- sprintf ("%-4
0
s %3s %3s %5.1f%%/%5.1f%%",
+ sprintf ("%-4
5
s %3s %3s %5.1f%%/%5.1f%%",
'Total', '', '', $pct_actual, $pct_possible));
unshift (@rubrics,
'Total', '', '', $pct_actual, $pct_possible));
unshift (@rubrics,