kkhatua commented on a change in pull request #1592: DRILL-6939: Indicate when 
a query is submitted and is in progress
URL: https://github.com/apache/drill/pull/1592#discussion_r245090478
 
 

 ##########
 File path: exec/java-exec/src/main/resources/rest/static/js/querySubmission.js
 ##########
 @@ -11,6 +11,38 @@
  *  language governing permissions and limitations under the License.
  */
 
+//Elements for Timer in LoadingModal
+var elapsedTime = 0;
+var delay = 1000; //msec
+var timeTracker = null; //Handle for stopping watch
+
+//Padding for time
+function str_pad_left(string,pad,length) {
+    return (new Array(length+1).join(pad)+string).slice(-length);
 
 Review comment:
   That actually shows only one digit for values less than 10. Modifying it to 
   `let prettyTime = ("0" + minutes).slice(-2)+':'+ ("0" + seconds).slice(-2);`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to