mirror of
https://github.com/matrix-construct/construct
synced 2024-10-03 22:28:52 +02:00
modules/console: Show request time in client list.
This commit is contained in:
parent
b68677cc28
commit
4387b092ad
1 changed files with 10 additions and 2 deletions
|
@ -4196,15 +4196,23 @@ console_cmd__client(opt &out, const string_view &line)
|
||||||
out << " ASYNC";
|
out << " ASYNC";
|
||||||
|
|
||||||
if(client->request.user_id)
|
if(client->request.user_id)
|
||||||
out << " USER " << client->request.user_id;
|
out << " | USER " << client->request.user_id;
|
||||||
|
|
||||||
if(client->request.origin)
|
if(client->request.origin)
|
||||||
out << " PEER " << client->request.origin;
|
out << " | PEER " << client->request.origin;
|
||||||
|
|
||||||
if(client->request.head.method)
|
if(client->request.head.method)
|
||||||
out << " " << client->request.head.method << ""
|
out << " " << client->request.head.method << ""
|
||||||
<< " " << client->request.head.path;
|
<< " " << client->request.head.path;
|
||||||
|
|
||||||
|
if(client->reqctx)
|
||||||
|
{
|
||||||
|
thread_local char pbuf[64];
|
||||||
|
out << " | "
|
||||||
|
<< pretty(pbuf, client->timer.at<nanoseconds>())
|
||||||
|
<< "";
|
||||||
|
}
|
||||||
|
|
||||||
out << std::endl;
|
out << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue