![]() |
Bitcoin Core 31.0.0
P2P Digital Currency
|
Keeps track of an individual source location and how many available bytes are left for logging from it. More...
#include <logging.h>
Public Member Functions | |
| Stats (uint64_t max_bytes) | |
| bool | Consume (uint64_t bytes) |
| Updates internal accounting and returns true if enough available_bytes were remaining. | |
Public Attributes | |
| uint64_t | m_available_bytes |
| Remaining bytes. | |
| uint64_t | m_dropped_bytes {0} |
| Number of bytes that were consumed but didn't fit in the available bytes. | |
Keeps track of an individual source location and how many available bytes are left for logging from it.
|
inline |
Updates internal accounting and returns true if enough available_bytes were remaining.
Definition at line 573 of file logging.cpp.
| uint64_t BCLog::LogRateLimiter::Stats::m_available_bytes |
| uint64_t BCLog::LogRateLimiter::Stats::m_dropped_bytes {0} |