summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoryangwei <[email protected]>2023-12-25 11:26:46 +0800
committeryangwei <[email protected]>2023-12-28 17:41:12 +0800
commita7771c38637bdb9901cca1301acb187f79ce8529 (patch)
treec31dd48ef7149da05ae2fba7fe03448451f84b52 /include
parentf06d751d0f017986920d7c3b3f0f9609c3b0a88c (diff)
🎈 perf(timeout precision): from s to ms
Diffstat (limited to 'include')
-rw-r--r--include/private/stream_manage.h6
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;