0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-01 03:18:54 +01:00

modules/console: Add column for checkpoint to db files cmd.

This commit is contained in:
Jason Volk 2023-03-18 20:43:19 -07:00
parent 3709cda233
commit c807550ca7

View file

@ -4596,8 +4596,8 @@ static void
_print_sst_info_header(opt &out) _print_sst_info_header(opt &out)
{ {
out << std::left << std::setfill(' ') out << std::left << std::setfill(' ')
<< std::setw(6) << "path" << std::setw(3) << "chkp"
<< std::setw(12) << "name" << " " << std::setw(12) << "name"
<< " " << std::setw(32) << "creation" << " " << std::setw(32) << "creation"
<< " " << std::setw(3) << "flt" << " " << std::setw(3) << "flt"
<< std::right << std::right
@ -4638,8 +4638,9 @@ _print_sst_info(opt &out,
char tmbuf[64], pbuf[48]; char tmbuf[64], pbuf[48];
out << std::left << std::setfill(' ') out << std::left << std::setfill(' ')
<< std::setw(6) << rsplit(f.path, '/').second << std::setw(3) << std::left << rsplit(f.path, '/').second
<< std::setw(12) << f.name << " "
<< std::setw(12) << std::left << f.name
<< " " << std::setw(32) << std::left << (f.created? timef(tmbuf, f.created, ircd::localtime) : string_view{}) << " " << std::setw(32) << std::left << (f.created? timef(tmbuf, f.created, ircd::localtime) : string_view{})
<< " " << std::setw(1) << std::left << (!f.filter.empty()? 'F' : '-') << " " << std::setw(1) << std::left << (!f.filter.empty()? 'F' : '-')
<< std::setw(1) << std::left << (f.delta_encoding? 'D' : '-') << std::setw(1) << std::left << (f.delta_encoding? 'D' : '-')