From 4387b092adde8c5023d5cb5918a785182314e97b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 13 Dec 2018 12:25:16 -0800 Subject: [PATCH] modules/console: Show request time in client list. --- modules/console.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/console.cc b/modules/console.cc index f4181fe82..9c6b16179 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -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()) + << ""; + } + out << std::endl; }