mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
Make Reassembler::TotalSize a constant time operation
This commit is contained in:
parent
647fe3f494
commit
436a93b38a
3 changed files with 6 additions and 7 deletions
|
@ -255,12 +255,7 @@ void Reassembler::ClearOldBlocks()
|
|||
|
||||
uint64 Reassembler::TotalSize() const
|
||||
{
|
||||
uint64 size = 0;
|
||||
|
||||
for ( DataBlock* b = blocks; b; b = b->next )
|
||||
size += b->Size();
|
||||
|
||||
return size;
|
||||
return size_of_all_blocks;
|
||||
}
|
||||
|
||||
void Reassembler::Describe(ODesc* d) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue