This is an automated email from the ASF dual-hosted git repository.

zhouky pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-celeborn.git


The following commit(s) were added to refs/heads/main by this push:
     new fd82855e8 [CELEBORN-777][FOLLOWUP] CongestionControl 
getPotentialConsumeSpeed throw …   …/zero error
fd82855e8 is described below

commit fd82855e8be21d42b034d4f343b0e5f24a86ff0c
Author: Angerszhuuuu <[email protected]>
AuthorDate: Mon Jul 10 10:37:19 2023 +0800

    [CELEBORN-777][FOLLOWUP] CongestionControl getPotentialConsumeSpeed throw … 
  …/zero error
    
    ### What changes were proposed in this pull request?
    Fix compute bug
    
    ### Why are the changes needed?
    
    ### Does this PR introduce _any_ user-facing change?
    
    ### How was this patch tested?
    
    Closes #1693 from AngersZhuuuu/CELEBORN-777.
    
    Authored-by: Angerszhuuuu <[email protected]>
    Signed-off-by: zky.zhoukeyong <[email protected]>
---
 .../celeborn/service/deploy/worker/congestcontrol/BufferStatusHub.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/worker/src/main/java/org/apache/celeborn/service/deploy/worker/congestcontrol/BufferStatusHub.java
 
b/worker/src/main/java/org/apache/celeborn/service/deploy/worker/congestcontrol/BufferStatusHub.java
index 14a0dfd5a..88c42bb52 100644
--- 
a/worker/src/main/java/org/apache/celeborn/service/deploy/worker/congestcontrol/BufferStatusHub.java
+++ 
b/worker/src/main/java/org/apache/celeborn/service/deploy/worker/congestcontrol/BufferStatusHub.java
@@ -78,7 +78,7 @@ public class BufferStatusHub extends 
TimeSlidingHub<BufferStatusHub.BufferStatus
     Pair<BufferStatusNode, Integer> sumInfo = sum();
     long currentNumBytes = sumInfo.getKey().numBytes();
     if (currentNumBytes > 0) {
-      return currentNumBytes * 1000 / (long) sumInfo.getRight() * 
intervalPerBucketInMills;
+      return currentNumBytes * 1000 / ((long) sumInfo.getRight() * 
intervalPerBucketInMills);
     }
     return 0L;
   }

Reply via email to