Skip to content

Commit

Permalink
fixing typo #22
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Apr 9, 2024
1 parent 27cb779 commit 842fe20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/vehicle/SUMOVehicleParameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ SUMOVehicleParameter::incrementFlow(double scale, SumoRNG* rng) {
if (repetitionOffset >= 0) {
repetitionTotalOffset += (SUMOTime)((double)repetitionOffset / scale);
} else {
assert(poissionRate > 0);
assert(poissonRate > 0);
// we need to cache this do avoid double generation of the rng in the TIME2STEPS macro
const double r = RandHelper::randExp(poissonRate, rng);
repetitionTotalOffset += TIME2STEPS(r / scale);
Expand Down

0 comments on commit 842fe20

Please sign in to comment.