You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ma...@apache.org on 2022/09/30 03:42:04 UTC
[pulsar] branch branch-2.11 updated: [fix][broker] Fix the wrong NIC speed rate unit. (#17890)
This is an automated email from the ASF dual-hosted git repository.
mattisonchao pushed a commit to branch branch-2.11
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-2.11 by this push:
new 762206b7679 [fix][broker] Fix the wrong NIC speed rate unit. (#17890)
762206b7679 is described below
commit 762206b7679e069ea8b659f65b226cdf608b86ce
Author: Qiang Zhao <ma...@apache.org>
AuthorDate: Fri Sep 30 11:38:49 2022 +0800
[fix][broker] Fix the wrong NIC speed rate unit. (#17890)
(cherry picked from commit fb7307d8f4998e42b18df3a4599fd7ec34cb04a9)
---
.../main/java/org/apache/pulsar/broker/loadbalance/LinuxInfoUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/LinuxInfoUtils.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/LinuxInfoUtils.java
index c23b3e8d2a6..932c19445af 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/LinuxInfoUtils.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/LinuxInfoUtils.java
@@ -177,7 +177,7 @@ public class LinuxInfoUtils {
log.error("[LinuxInfo] Failed to get total nic limit.", e);
return 0d;
}
- }).sum(), BitRateUnit.Bit);
+ }).sum(), BitRateUnit.Megabit);
}
/**