We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a880216 + 8ac65c3 commit c9f5a54Copy full SHA for c9f5a54
power/Power.cc
@@ -664,7 +664,9 @@ Power::ensureActivities()
664
// unless it has been set by command.
665
if (input_activity_.density() == 0.0) {
666
float min_period = clockMinPeriod();
667
- float density = 0.1 / (min_period != 0.0 ? min_period : 0.0);
+ float density = 0.1 / (min_period != 0.0
668
+ ? min_period
669
+ : units_->timeUnit()->scale());
670
input_activity_.set(density, 0.5, PwrActivityOrigin::input);
671
}
672
ActivitySrchPred activity_srch_pred(this);
0 commit comments