-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug :Infinity value for CPU or Bandwidth usage (#13609)
* fix bug :Infinity value for CPU or Bandwidth usage * use executorService.schedule replace to executorService.schedule * 1.use scheduleAtFixedDelay instead of scheduleAtFixedRate; 2.returns when elapsedSeconds <= 0 is true, skip this round of calculateBrokerHostUsage; * 1.move the early return conditional block to before getTotalCpuUsage; * 1.use scheduleWithFixedDelay instead of scheduleAtFixedRate in the class GenericBrokerHostUsageImpl; * update log content: add a space in log
- Loading branch information
1 parent
9032a9a
commit 2a7515f
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters