Eugene Morozov created ZEPPELIN-54: -------------------------------------- Summary: At the beginning of running paragraph it's always "Took <negative number of> seconds Key: ZEPPELIN-54 URL: https://issues.apache.org/jira/browse/ZEPPELIN-54 Project: Zeppelin Issue Type: Bug Components: GUI Reporter: Eugene Morozov
There are several places (app/scripts/controllers/paragraphs.js, .tmp/concat/scripts/scripts.js, src/main/webapp/scripts/scripts.js) with following like code var timeMs = Date.parse(pdata.dateFinished) - Date.parse(pdata.dateStarted); return 'Took ' + (timeMs/1000) + ' seconds'; The only part is missing is to check if timeMs is actually a more than 0 and provide 0 if it's not. There is also a two files called worker-xquery.js with a really long line (I can't even open them in my IDE, that contains something similar). I've found all of these places using regexp: "Took.*seconds". I've never worked with javascripts (any UI at all, actually) , so I'm not sure what files has to be changed. Although the change by itself is pretty simple: just using ternary operator to check the number. -- This message was sent by Atlassian JIRA (v6.3.4#6332)