File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,6 +112,19 @@ struct BlockFinalizeTransportStats {
112112 uint64_t tcpClientRequests = 0 ;
113113 uint64_t zmqServerRequestsServed = 0 ;
114114 uint64_t tcpServerRequestsServed = 0 ;
115+
116+ void add ( const BlockFinalizeTransportStats& _other ) {
117+ zmqClientAttempts += _other.zmqClientAttempts ;
118+ zmqClientFallbacksToTcp += _other.zmqClientFallbacksToTcp ;
119+ tcpClientRequests += _other.tcpClientRequests ;
120+ zmqServerRequestsServed += _other.zmqServerRequestsServed ;
121+ tcpServerRequestsServed += _other.tcpServerRequestsServed ;
122+ }
123+
124+ uint64_t totalRequests () const {
125+ return zmqClientAttempts + zmqClientFallbacksToTcp + tcpClientRequests +
126+ zmqServerRequestsServed + tcpServerRequestsServed;
127+ }
115128};
116129
117130class Schain : public Agent {
You can’t perform that action at this time.
0 commit comments