mirror of
https://github.com/matrix-construct/construct
synced 2025-03-23 01:40:27 +01: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";
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue