diff --git a/a8/tcpclient.cc b/a8/tcpclient.cc index 665803c..5d14b32 100644 --- a/a8/tcpclient.cc +++ b/a8/tcpclient.cc @@ -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; diff --git a/a8/tcpsession.cc b/a8/tcpsession.cc index 009a84b..43762ed 100644 --- a/a8/tcpsession.cc +++ b/a8/tcpsession.cc @@ -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));