0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-15 14:31:11 +01:00

modules/console: Add depth to vm listing; adjust widths.

This commit is contained in:
Jason Volk 2020-03-02 19:07:05 -08:00
parent cfc199d89e
commit 9f4bc6606e

View file

@ -14252,12 +14252,13 @@ console_cmd__vm(opt &out, const string_view &line)
<< std::left << std::setw(24) << "USER" << " "
<< std::right << std::setw(5) << "PDUS" << " "
<< std::right << std::setw(5) << "DONE" << " "
<< std::right << std::setw(10) << "SEQUENCE" << " "
<< std::right << std::setw(10) << "SEQSHARE" << " "
<< std::right << std::setw(10) << "SEQSHARE" << " "
<< std::right << std::setw(9) << "SEQUENCE" << " "
<< std::right << std::setw(9) << "SEQSHARE" << " "
<< std::right << std::setw(9) << "SEQSHARE" << " "
<< std::right << std::setw(8) << "CELLS" << " "
<< std::right << std::setw(8) << "SIZE" << " "
<< std::right << std::setw(8) << "ROOM VER" << " "
<< std::right << std::setw(8) << "DEPTH" << " "
<< std::right << std::setw(5) << "VER" << " "
<< std::left << std::setw(40) << "ROOM ID" << " "
<< std::left << std::setw(60) << "EVENT ID" << " "
<< std::left << std::setw(20) << "SENDER" << " "
@ -14284,12 +14285,13 @@ console_cmd__vm(opt &out, const string_view &line)
<< std::left << std::setw(24) << trunc(eval->opts->node_id?: eval->opts->user_id, 24) << " "
<< std::right << std::setw(5) << eval->pdus.size() << " "
<< std::right << std::setw(5) << done << " "
<< std::right << std::setw(10) << eval->sequence << " "
<< std::right << std::setw(10) << eval->sequence_shared[0] << " "
<< std::right << std::setw(10) << eval->sequence_shared[1] << " "
<< std::right << std::setw(9) << eval->sequence << " "
<< std::right << std::setw(9) << eval->sequence_shared[0] << " "
<< std::right << std::setw(9) << eval->sequence_shared[1] << " "
<< std::right << std::setw(8) << (eval->txn? eval->txn->size() : 0UL) << " "
<< std::right << std::setw(8) << (eval->txn? eval->txn->bytes() : 0UL) << " "
<< std::right << std::setw(8) << eval->room_version << " "
<< std::right << std::setw(8) << (eval->event_? long(json::get<"depth"_>(*eval->event_)) : -1L) << " "
<< std::right << std::setw(5) << eval->room_version << " "
<< std::left << std::setw(40) << trunc(eval->room_id, 40) << " "
<< std::left << std::setw(60) << trunc(eval->event_id, 60) << " "
<< std::left << std::setw(20) << trunc(eval->event_? json::get<"sender"_>(*eval->event_) : json::string{}, 20) << " "