Skip to content

Commit c9f5a54

Browse files
authored
Merge branch 'parallaxsw:master' into main
2 parents a880216 + 8ac65c3 commit c9f5a54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

power/Power.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,9 @@ Power::ensureActivities()
664664
// unless it has been set by command.
665665
if (input_activity_.density() == 0.0) {
666666
float min_period = clockMinPeriod();
667-
float density = 0.1 / (min_period != 0.0 ? min_period : 0.0);
667+
float density = 0.1 / (min_period != 0.0
668+
? min_period
669+
: units_->timeUnit()->scale());
668670
input_activity_.set(density, 0.5, PwrActivityOrigin::input);
669671
}
670672
ActivitySrchPred activity_srch_pred(this);

0 commit comments

Comments
 (0)