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

modules/console: Tweak formatting of db cache output.

This commit is contained in:
Jason Volk 2018-09-26 15:40:54 -07:00
parent 24b7aa56db
commit 5e843d0494

View file

@ -1533,13 +1533,13 @@ try
<< std::setw(16) << "ROW"
<< std::right
<< " "
<< std::setw(22) << "LOCKED"
<< " "
<< std::setw(26) << "CACHED"
<< " "
<< std::setw(26) << "CAPACITY"
<< " "
<< std::setw(6) << "PCT"
<< std::setw(7) << "PCT"
<< " "
<< std::setw(20) << "LOCKED"
<< " "
<< std::endl;
@ -1547,14 +1547,15 @@ try
<< std::setw(16) << "*"
<< std::right
<< " "
<< std::setw(22) << std::right << pretty(iec(pinned))
<< " "
<< std::setw(26) << std::right << pretty(iec(usage))
<< " "
<< std::setw(26) << std::right << pretty(iec(capacity))
<< " "
<< std::setw(6) << std::right << std::fixed << std::setprecision(2) << (usage_pct * 100)
<< "%"
<< " "
<< std::setw(20) << std::right << pretty(iec(pinned))
<< " "
<< std::endl
<< std::endl;
@ -1573,14 +1574,14 @@ try
<< " "
<< std::setw(9) << "INSERTS"
<< " "
<< std::setw(22) << "LOCKED"
<< " "
<< std::setw(26) << "CACHED"
<< " "
<< std::setw(26) << "CAPACITY"
<< " "
<< std::setw(7) << "PCT"
<< " "
<< std::setw(20) << "LOCKED"
<< " "
<< "|"
<< std::setw(9) << "HITS"
<< " "
@ -1588,13 +1589,14 @@ try
<< " "
<< std::setw(9) << "INSERTS"
<< " "
<< std::setw(22) << "COMPRESSED LOCKED"
<< " "
<< std::setw(26) << "COMPRESSED CACHED"
<< " "
<< std::setw(26) << "COMPRESSED CAPACITY"
<< " "
<< std::setw(7) << "PCT"
<< " "
<< std::setw(20) << "COMPRESSED LOCKED"
<< " "
<< std::endl;
const auto output{[&out]
@ -1615,8 +1617,6 @@ try
<< " "
<< std::setw(9) << stats.inserts
<< " "
<< std::setw(22) << std::right << pretty(iec(pinned))
<< " "
<< std::setw(26) << std::right << pretty(iec(usage))
<< " "
<< std::setw(26) << std::right << pretty(iec(capacity))
@ -1624,6 +1624,8 @@ try
<< std::setw(6) << std::right << std::fixed << std::setprecision(2) << (usage_pct * 100)
<< '%'
<< " "
<< std::setw(20) << std::right << pretty(iec(pinned))
<< " "
<< "|"
<< std::setw(9) << stats_comp.hits
<< " "
@ -1631,14 +1633,15 @@ try
<< " "
<< std::setw(9) << stats_comp.inserts
<< " "
<< std::setw(22) << std::right << pretty(iec(pinned_comp))
<< " "
<< std::setw(26) << std::right << pretty(iec(usage_comp))
<< " "
<< std::setw(26) << std::right << pretty(iec(capacity_comp))
<< " "
<< std::setw(6) << std::right << std::fixed << std::setprecision(2) << (usage_comp_pct * 100)
<< '%'
<< " "
<< std::setw(20) << std::right << pretty(iec(pinned_comp))
<< " "
<< std::endl;
}};