support rate as a cyclerate synonym

This commit is contained in:
Jonathan Shook 2020-06-29 13:09:18 -05:00
parent a7a7ac254c
commit fd2da9972b

View File

@ -236,7 +236,7 @@ public class SimpleActivity implements Activity {
.map(RateSpec::new)
.ifPresent(spec -> strideLimiter = RateLimiters.createOrUpdate(this.getActivityDef(), "strides", strideLimiter, spec));
activityDef.getParams().getOptionalNamedParameter("cyclerate", "targetrate")
activityDef.getParams().getOptionalNamedParameter("cyclerate", "targetrate","rate")
.map(RateSpec::new).ifPresent(
spec -> cycleLimiter = RateLimiters.createOrUpdate(this.getActivityDef(), "cycles", cycleLimiter, spec));