mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🐛 fixed NumOfLogs if logs disabled
This commit is contained in:
parent
cf580ae876
commit
ae219af90e
1 changed files with 2 additions and 0 deletions
|
|
@ -25,10 +25,12 @@ size_t Bank::NumOfUsers() const noexcept { return users.size(); }
|
|||
uint64_t Bank::NumOfLogs() const noexcept
|
||||
{
|
||||
uint64_t res = 0;
|
||||
#if MAX_LOG_SIZE > 0
|
||||
for (const auto &u : users)
|
||||
{
|
||||
res += u.second.log.data.size();
|
||||
}
|
||||
#endif
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue