[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm

matthew lon-capa-cvs@mail.lon-capa.org
Fri, 16 Jul 2004 19:54:52 -0000


matthew		Fri Jul 16 15:54:52 2004 EDT

  Modified files:              
    /loncom/interface	lonhtmlcommon.pm 
  Log:
  Progress window localization logic would skip display for
  the brief moment there were exactly 10 minutes of computation left.
  
  
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.80 loncom/interface/lonhtmlcommon.pm:1.81
--- loncom/interface/lonhtmlcommon.pm:1.80	Fri Jul 16 15:29:26 2004
+++ loncom/interface/lonhtmlcommon.pm	Fri Jul 16 15:54:51 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common html routines
 #
-# $Id: lonhtmlcommon.pm,v 1.80 2004/07/16 19:29:26 matthew Exp $
+# $Id: lonhtmlcommon.pm,v 1.81 2004/07/16 19:54:51 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -783,7 +783,7 @@
         $str = '1 minute';
     } elsif ($min < 10 && $sec > 1) {
         $str = '[_1] minutes, [_2] seconds';
-    } elsif ($min > 10 || $sec < 2) {
+    } elsif ($min >= 10 || $sec < 2) {
         $str = '[_1] minutes';
     }
     $time_est = &mt($str,$min,$sec);