Sfoglia il codice sorgente

[oozie] Remove math.floor to fix scheduled workflow progress (#2881)

Co-authored-by: Vinay Devadiga <vinaydev@amazon.com>
Co-authored-by: Harsh Gupta <42064744+Harshg999@users.noreply.github.com>
Vinay 3 anni fa
parent
commit
898da24cbc
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      desktop/libs/liboozie/src/liboozie/types.py

+ 1 - 1
desktop/libs/liboozie/src/liboozie/types.py

@@ -593,7 +593,7 @@ class Coordinator(Job):
     end = mktime(self.endTime)
 
     if end != start:
-      progress = min(int((1 - math.floor((end - next) / (end - start))) * 100), 100)
+      progress = min(int((1 - (end - next) / (end - start)) * 100), 100)
     else:
       progress = 100