Sfoglia il codice sorgente

HUE-4635 [jb] Fix duration on jobs page for running jobs

krish 9 anni fa
parent
commit
a6c4982
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      apps/jobbrowser/src/jobbrowser/yarn_models.py

+ 1 - 1
apps/jobbrowser/src/jobbrowser/yarn_models.py

@@ -73,7 +73,7 @@ class Application(object):
       finishTime = int(time.time() * 1000)
     else:
       finishTime = self.finishedTime
-    if self.finishedTime == 0 or self.startedTime == 0:
+    if self.startedTime == 0:
       durationInMillis = None
     else:
       durationInMillis = finishTime - self.startedTime