This commit is contained in:
aozhiwei 2024-05-29 11:38:04 +08:00
parent 8a86a795cd
commit 1d6990c401
2 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ namespace a8
currnode->bufflen - currnode->sent_bytes,
0);
#ifdef A8_PERFT
PerfMonitor::Instance()->conn_send_bytes += len;
PerfMonitor::Instance()->conn_consume_bytes += len;
#endif
if (len > 0) {
currnode->sent_bytes += len;

View File

@ -69,7 +69,7 @@ namespace a8
}
if (bufflen > 0) {
#ifdef A8_PERFT
PerfMonitor::Instance()->conn_send_bytes += bufflen;
PerfMonitor::Instance()->server_send_bytes += bufflen;
#endif
a8::SendQueueNode* p = (a8::SendQueueNode*)malloc(sizeof(a8::SendQueueNode));
memset(p, 0, sizeof(a8::SendQueueNode));