rename counter -> stat

This commit is contained in:
luwenpeng
2024-03-08 14:25:01 +08:00
parent c945931620
commit d0914483bb
7 changed files with 41 additions and 41 deletions

View File

@@ -88,11 +88,6 @@ void packet_io_free(struct packet_io *handle)
}
}
struct packet_io_stat *packet_io_get_stat(struct packet_io *handle)
{
return (struct packet_io_stat *)handle->on_stat(handle->handle);
}
void packet_io_print_stat(struct packet_io *handle)
{
struct packet_io_stat *stat = packet_io_get_stat(handle);
@@ -104,6 +99,11 @@ void packet_io_print_stat(struct packet_io *handle)
PACKET_IO_LOG_DEBUG("keepalive_pkts : %lu, keepalive_bytes : %lu", stat->keepalive_pkts, stat->keepalive_bytes);
}
struct packet_io_stat *packet_io_get_stat(struct packet_io *handle)
{
return (struct packet_io_stat *)handle->on_stat(handle->handle);
}
int packet_io_init(struct packet_io *handle, uint16_t thread_id)
{
return handle->on_init(handle->handle, thread_id);