fix: return a correct value from Log::size and Log::capacity
This commit is contained in:
parent
aa97fe2811
commit
9a596dd097
|
@ -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…
Reference in New Issue