0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-16 08:58:20 +02:00

ircd:Ⓜ️ Add origin_server_ts to pretty event output.

This commit is contained in:
Jason Volk 2018-01-21 03:19:36 -08:00
parent 4ce6a8ac0a
commit a360c6f28f

View file

@ -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)
{