Skip to content

Commit

Permalink
GateControlList: Fixed discussion #1139.
Browse files Browse the repository at this point in the history
  • Loading branch information
levy committed Mar 26, 2024
1 parent 47f6ebf commit 94bdd65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inet/queueing/gate/GateControlList.cc
Expand Up @@ -63,7 +63,7 @@ void GateControlList::parseGcl()
auto durations = gateDurations.at(i);
if (durations->size() % 2 != 0)
durations->add(cValue(currentDuration[i], "s"));
else {
else if (durations->size() != 0) {
durations->set(0, cValue(durations->get(0).doubleValueInUnit("s") + currentDuration[i], "s"));
offsets[i] = currentDuration[i];
}
Expand Down

0 comments on commit 94bdd65

Please sign in to comment.