diff options
| author | yangwei <[email protected]> | 2023-12-25 11:26:46 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2023-12-28 17:41:12 +0800 |
| commit | a7771c38637bdb9901cca1301acb187f79ce8529 (patch) | |
| tree | c31dd48ef7149da05ae2fba7fe03448451f84b52 /include | |
| parent | f06d751d0f017986920d7c3b3f0f9609c3b0a88c (diff) | |
🎈 perf(timeout precision): from s to ms
Diffstat (limited to 'include')
| -rw-r--r-- | include/private/stream_manage.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/private/stream_manage.h b/include/private/stream_manage.h index cdd91a6..61faf8c 100644 --- a/include/private/stream_manage.h +++ b/include/private/stream_manage.h @@ -89,8 +89,8 @@ struct stream_list int cnt;
int max_cnt;
struct timeouts *streamindex_timer;
- long last_update_timer_s;
- long interval_to_next_timeout_s;
+ long last_update_timer_ms;
+ long interval_to_next_timeout_ms;
timeout_error_t timer_error;
struct token_bucket *timeout_ratelimiter;
};
@@ -118,7 +118,7 @@ struct global_stream struct timeouts *user_define_timer;
long user_define_timer_cnt;
- long interval_to_next_timeout_s;
+ long interval_to_next_timeout_ms;
timeout_error_t timer_error;
struct token_bucket *tcp_timeout_ratelimiter;
struct token_bucket *udp_timeout_ratelimiter;
|
