mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Fixing prof.log output.
The queue Size() method was not yet atomic.
This commit is contained in:
parent
4879cb7b0d
commit
cf6a346b86
3 changed files with 13 additions and 8 deletions
|
@ -224,7 +224,8 @@ void ProfileLogger::Log()
|
|||
i != thread_stats.end(); ++i )
|
||||
{
|
||||
threading::MsgThread::Stats s = i->second;
|
||||
file->Write(fmt(" %20s in=%" PRIu64 " out=%" PRIu64 " pending=%" PRIu64 "/%" PRIu64 "\n",
|
||||
file->Write(fmt("%0.6f %-15s in=%" PRIu64 " out=%" PRIu64 " pending=%" PRIu64 "/%" PRIu64 "\n",
|
||||
network_time,
|
||||
i->first.c_str(),
|
||||
s.sent_in, s.sent_out,
|
||||
s.pending_in, s.pending_out));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue