0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-04 17:48:35 +02:00

modules/console: Show request time in client list.

This commit is contained in:
Jason Volk 2018-12-13 12:25:16 -08:00
parent b68677cc28
commit 4387b092ad

View file

@ -4196,15 +4196,23 @@ console_cmd__client(opt &out, const string_view &line)
out << " ASYNC";
if(client->request.user_id)
out << " USER " << client->request.user_id;
out << " | USER " << client->request.user_id;
if(client->request.origin)
out << " PEER " << client->request.origin;
out << " | PEER " << client->request.origin;
if(client->request.head.method)
out << " " << client->request.head.method << ""
<< " " << client->request.head.path;
if(client->reqctx)
{
thread_local char pbuf[64];
out << " | "
<< pretty(pbuf, client->timer.at<nanoseconds>())
<< "";
}
out << std::endl;
}