fix: return a correct value from Log::size and Log::capacity

This commit is contained in:
Tomasz Sowa 2022-07-30 02:45:19 +02:00
parent aa97fe2811
commit 9a596dd097
1 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ size_t Log::size() const
{
if( buffer )
{
buffer->size();
return buffer->size();
}
return 0;
@ -124,7 +124,7 @@ size_t Log::capacity() const
{
if( buffer )
{
buffer->capacity();
return buffer->capacity();
}
return 0;