diff --git a/contrib/src/main/java/gov/nasa/jpl/aerie/contrib/streamline/modeling/clocks/VariableClockResources.java b/contrib/src/main/java/gov/nasa/jpl/aerie/contrib/streamline/modeling/clocks/VariableClockResources.java index 7727fceb72..6badf4062b 100644 --- a/contrib/src/main/java/gov/nasa/jpl/aerie/contrib/streamline/modeling/clocks/VariableClockResources.java +++ b/contrib/src/main/java/gov/nasa/jpl/aerie/contrib/streamline/modeling/clocks/VariableClockResources.java @@ -16,6 +16,7 @@ import static gov.nasa.jpl.aerie.contrib.streamline.modeling.discrete.DiscreteResources.not; import static gov.nasa.jpl.aerie.contrib.streamline.modeling.linear.Linear.linear; import static gov.nasa.jpl.aerie.merlin.protocol.types.Duration.EPSILON; +import static gov.nasa.jpl.aerie.merlin.protocol.types.Duration.SECOND; public final class VariableClockResources { private VariableClockResources() {} @@ -51,7 +52,7 @@ public static Resource> greaterThanOrEquals(Resource asLinear(Resource clock, Duration unit) { - return map(clock, c -> linear(c.extract().ratioOver(unit), c.multiplier())); + return map(clock, c -> linear(c.extract().ratioOver(unit), c.multiplier() * SECOND.ratioOver(unit))); } public static Resource asVariableClock(Resource clock) {