瀏覽代碼

[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 年之前
父節點
當前提交
898da24cbc
共有 1 個文件被更改,包括 1 次插入1 次删除
  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