MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetOutboundTargetBytesLeft

Method GetOutboundTargetBytesLeft

src/net.cpp:3000–3007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2998}
2999
3000uint64_t CConnman::GetOutboundTargetBytesLeft() const
3001{
3002 LOCK(cs_totalBytesSent);
3003 if (nMaxOutboundLimit == 0)
3004 return 0;
3005
3006 return (nMaxOutboundTotalBytesSentInCycle >= nMaxOutboundLimit) ? 0 : nMaxOutboundLimit - nMaxOutboundTotalBytesSentInCycle;
3007}
3008
3009uint64_t CConnman::GetTotalBytesRecv() const
3010{

Callers 2

FUZZ_TARGET_INITFunction · 0.80
getnettotalsFunction · 0.80

Calls

no outgoing calls

Tested by 1

FUZZ_TARGET_INITFunction · 0.64