mirror of
https://github.com/matrix-construct/construct
synced 2025-02-19 18:20:19 +01:00
ircd:Ⓜ️ Add origin_server_ts to pretty event output.
This commit is contained in:
parent
4ce6a8ac0a
commit
a360c6f28f
1 changed files with 9 additions and 0 deletions
|
@ -193,6 +193,15 @@ ircd::m::pretty(const event &event)
|
|||
|
||||
json::for_each(event, top_keys, out);
|
||||
|
||||
const auto &ts{json::get<"origin_server_ts"_>(event)};
|
||||
{
|
||||
thread_local char buf[128];
|
||||
s << std::setw(16) << std::right << "origin_server_ts" << ": "
|
||||
<< timef(buf, ts / 1000L, localtime)
|
||||
<< " (" << ts << ")"
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
const auto &hashes{json::get<"hashes"_>(event)};
|
||||
for(const auto &hash : hashes)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue