Fixing prof.log output.

The queue Size() method was not yet atomic.
This commit is contained in:
Robin Sommer 2012-02-03 03:27:25 -08:00
parent 4879cb7b0d
commit cf6a346b86
3 changed files with 13 additions and 8 deletions

View file

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