Skip to content

Commit

Permalink
ratelimit: update the last time used for the pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Jun 4, 2015
1 parent ab60f69 commit fd8036c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/ratelimit/ratelimit_helper.c
Expand Up @@ -822,6 +822,8 @@ void rl_rcv_bin(int packet_type, struct receive_info *ri)
LM_WARN("limit %d different from the initial one %d for "
"pipe %.*s", limit, (*pipe)->limit, name.len, name.s);
}
/* set the last used time */
(*pipe)->last_used = time(0);
/* set the destination's counter */
(*pipe)->dsts[index].counter = counter;
(*pipe)->dsts[index].update = now;
Expand Down

0 comments on commit fd8036c

Please sign in to comment.