bzs1118 commented on code in PR #3773:
URL: https://github.com/apache/brpc/pull/3773#discussion_r4729742003
##########
src/brpc/builtin/connections_service.cpp:
##########
@@ -244,7 +245,9 @@ void ConnectionsService::PrintConnections(
}
}
ptr->GetStat(&stat);
- PrintRealDateTime(os, ptr->_reset_fd_real_us);
+ const int64_t reset_fd_to_now_us =
+ butil::cpuwide_time_us() - ptr->_reset_fd_real_us;
+ PrintRealDateTime(os, butil::gettimeofday_us() -
reset_fd_to_now_us);
Review Comment:
True. I stored the wall clock in `_reset_fd_real_us` instead.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]