0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

ircd:Ⓜ️ Fix content size sampling in pretty(event).

This commit is contained in:
Jason Volk 2018-04-20 23:48:39 -07:00
parent 6b32da764d
commit 799f450b47

View file

@ -312,7 +312,7 @@ ircd::m::pretty(const event &event)
if(!contents.empty()) if(!contents.empty())
{ {
s << std::setw(16) << std::right << "[content]" << " :" s << std::setw(16) << std::right << "[content]" << " :"
<< "+ " << size(contents) << " bytes :"; << "+ " << size(string_view{contents}) << " bytes :";
for(const auto &content : contents) for(const auto &content : contents)
s << content.first << ", "; s << content.first << ", ";