mirror of
https://github.com/emqx/neuron.git
synced 2026-10-17 04:40:42 +08:00
Merge pull request #2034 from hxy7yx/v2.7-2
[v2.7]metric: reset send&recv bytes when restart node
This commit is contained in:
@@ -125,7 +125,9 @@ void neu_conn_stop(neu_conn_t *conn)
|
||||
void neu_conn_start(neu_conn_t *conn)
|
||||
{
|
||||
pthread_mutex_lock(&conn->mtx);
|
||||
conn->stop = false;
|
||||
conn->state.recv_bytes = 0;
|
||||
conn->state.send_bytes = 0;
|
||||
conn->stop = false;
|
||||
pthread_mutex_unlock(&conn->mtx);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user