Keeps track of an individual source location and how many available bytes are left for logging from it.
More...
#include <logging.h>
|
| Stats (uint64_t max_bytes) |
|
bool | Consume (uint64_t bytes) |
| Updates internal accounting and returns true if enough available_bytes were remaining. More...
|
|
Keeps track of an individual source location and how many available bytes are left for logging from it.
Definition at line 117 of file logging.h.
◆ Stats()
BCLog::LogRateLimiter::Stats::Stats |
( |
uint64_t |
max_bytes | ) |
|
|
inline |
◆ Consume()
bool BCLog::LogRateLimiter::Stats::Consume |
( |
uint64_t |
bytes | ) |
|
Updates internal accounting and returns true if enough available_bytes were remaining.
Definition at line 571 of file logging.cpp.
◆ m_available_bytes
uint64_t BCLog::LogRateLimiter::Stats::m_available_bytes |
◆ m_dropped_bytes
uint64_t BCLog::LogRateLimiter::Stats::m_dropped_bytes {0} |
Number of bytes that were consumed but didn't fit in the available bytes.
Definition at line 121 of file logging.h.
The documentation for this struct was generated from the following files: