diff options
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r-- | trafgen_parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y index a42dc30..4d83af6 100644 --- a/trafgen_parser.y +++ b/trafgen_parser.y @@ -147,7 +147,7 @@ static inline void __setup_new_counter(struct counter *c, uint8_t start, { c->min = start; c->max = stop; - c->inc = stepping; + c->inc = (type == TYPE_INC) ? stepping : -stepping; c->val = (type == TYPE_INC) ? start : stop; c->off = payload_last; c->type = type; |