File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -2445,17 +2445,6 @@ bool CConnman::Start(CScheduler& scheduler, const Options& connOptions)
2445
2445
{
2446
2446
Init (connOptions);
2447
2447
2448
- {
2449
- LOCK (cs_totalBytesRecv);
2450
- nTotalBytesRecv = 0 ;
2451
- }
2452
- {
2453
- LOCK (cs_totalBytesSent);
2454
- nTotalBytesSent = 0 ;
2455
- nMaxOutboundTotalBytesSentInCycle = 0 ;
2456
- nMaxOutboundCycleStartTime = 0 ;
2457
- }
2458
-
2459
2448
if (fListen && !InitBinds (connOptions.vBinds , connOptions.vWhiteBinds , connOptions.onion_binds )) {
2460
2449
if (clientInterface) {
2461
2450
clientInterface->ThreadSafeMessageBox (
Original file line number Diff line number Diff line change @@ -478,8 +478,8 @@ class CConnman
478
478
uint64_t nTotalBytesSent GUARDED_BY (cs_totalBytesSent) {0 };
479
479
480
480
// outbound limit & stats
481
- uint64_t nMaxOutboundTotalBytesSentInCycle GUARDED_BY (cs_totalBytesSent);
482
- uint64_t nMaxOutboundCycleStartTime GUARDED_BY (cs_totalBytesSent);
481
+ uint64_t nMaxOutboundTotalBytesSentInCycle GUARDED_BY (cs_totalBytesSent) { 0 } ;
482
+ uint64_t nMaxOutboundCycleStartTime GUARDED_BY (cs_totalBytesSent) { 0 } ;
483
483
uint64_t nMaxOutboundLimit GUARDED_BY (cs_totalBytesSent);
484
484
uint64_t nMaxOutboundTimeframe GUARDED_BY (cs_totalBytesSent);
485
485
You can’t perform that action at this time.
0 commit comments