Log Message:
-----------
Correct message about time exceeded for gateway tests that are in
progress.
Modified Files:
--------------
webwork2/lib/WeBWorK/ContentGenerator/Instructor:
StudentProgress.pm
Revision Data
-------------
Index: StudentProgress.pm
===================================================================
RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Instructor/StudentProgress.pm,v
retrieving revision 1.35
retrieving revision 1.36
diff -Llib/WeBWorK/ContentGenerator/Instructor/StudentProgress.pm -Llib/WeBWorK/ContentGenerator/Instructor/StudentProgress.pm -u -r1.35 -r1.36
--- lib/WeBWorK/ContentGenerator/Instructor/StudentProgress.pm
+++ lib/WeBWorK/ContentGenerator/Instructor/StudentProgress.pm
@@ -557,6 +557,8 @@
my $timeLimit = $userSet->version_time_limit()/60;
$testTime = $timeLimit if ( $testTime > $timeLimit );
$testTime = sprintf("%3.1f min", $testTime);
+ } elsif ( time() - $userSet->version_creation_time() < $userSet->version_time_limit() ) {
+ $testTime = 'still open';
} else {
$testTime = 'time limit ' .
'exceeded';
|