-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src: initialize prev_idle_time_ on ThreadMetrics
Make sure `prev_idle_time_` is initialized in the `ThreadMetrics::ThreadMetrics(SharedEnvInst envinst)` constructor so the loop utilization calculations are correct, otherwise the default value 0 is used which may lead to meaningless huge values (greater than 1 for the matter). No need to initialize this value in the `ThreadMetrics::ThreadMetrics(uint64_t thread_id)` as this is only used in the `EnvInst` constructor on which having a value of 0 makes sense.
- Loading branch information
1 parent
849bdd4
commit e1aac60
Showing
3 changed files
with
9 additions
and
1 deletion.
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
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