gaozhangmin commented on code in PR #15304:
URL: https://github.com/apache/pulsar/pull/15304#discussion_r857606446
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/LinuxInfoUtils.java:
##########
@@ -254,7 +254,7 @@ public double convertBy(double usageBytes) {
@AllArgsConstructor
public enum UsageUnit {
- Kbps(8 / 1024);
+ Kbps(1024);
Review Comment:
@erobot, Thanks for pointing it out, Because `totalNicLimit` is kbit.
`nicUsageRx` and `nicUsageTx` should also be converted to kbit.
`bytes*8/1000=kbit`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]