Skip to content
This repository has been archived by the owner on Oct 24, 2019. It is now read-only.

Commit

Permalink
bug fix for CConnSet::send time update
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Oct 12, 2017
1 parent 5ce19e2 commit 75000df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spp_rpc/src/comm/tbase/tsockcommu/tconnset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ int CConnSet::send(unsigned flow, const char* data, size_t data_len)
struct timeval now;
ConnCache* cc = ccs_[flow % maxconn_];

gettimeofday(&now, NULL);
if (cc->_flow != flow || flow == 0) {
MONITOR(MONITOR_SEND_FLOWID_ERR); // rsp msg flowid invalid
gettimeofday(&now, NULL);
unsigned flowCostTime =
(now.tv_sec - cc->_info.recvtime_) * 1000
+ (now.tv_usec - cc->_info.tv_usec) / 1000;
Expand Down

0 comments on commit 75000df

Please sign in to comment.