"MDL-14706, comment value check code to make progress bar work"
authordongsheng <dongsheng>
Wed, 17 Sep 2008 07:02:08 +0000 (07:02 +0000)
committerdongsheng <dongsheng>
Wed, 17 Sep 2008 07:02:08 +0000 (07:02 +0000)
lib/weblib.php

index 57d773f..26dceb5 100644 (file)
@@ -7214,9 +7214,11 @@ EOT;
         } else {
             $percent = $cur / $total;
         }
         } else {
             $percent = $cur / $total;
         }
+        /**
         if ($percent != 1 && ($this->lastcall->time + $this->minimum_time) > microtime(true)){
             return;
         }
         if ($percent != 1 && ($this->lastcall->time + $this->minimum_time) > microtime(true)){
             return;
         }
+        */
         $es = $this->estimate(microtime(true), $percent);
         $this->_update($percent, $msg, $es);
     }
         $es = $this->estimate(microtime(true), $percent);
         $this->_update($percent, $msg, $es);
     }