Browse Source

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

master
Tomasz Sowa 4 months ago
parent
commit
9a596dd097
  1. 4
      src/log/log.cpp

4
src/log/log.cpp

@ -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;

Loading…
Cancel
Save