Skip to content
Snippets Groups Projects
Commit e44f5b87 authored by Michael Davis's avatar Michael Davis
Browse files

[lpa-summary] Implements lpa summary on client side (cta-admin)

parent 7885f74b
No related branches found
No related tags found
No related merge requests found
......@@ -56,8 +56,6 @@ void IStreamBuffer<cta::xrd::Data>::DataCallback(cta::xrd::Data record) const
using namespace cta::xrd;
using namespace cta::admin;
Log::DumpProtobuf(Log::PROTOBUF, &record);
switch(record.data_case())
{
case Data::kAfItemFieldNumber : switch(record.af_item().type())
......@@ -460,6 +458,10 @@ void CtaAdminCmd::printLpaSummaryHeader()
void CtaAdminCmd::printLpaSummaryItem(const cta::admin::ArchiveFileSummaryItem &af_summary_item)
{
std::cout << std::setfill(' ') << std::setw(18) << std::right << af_summary_item.tapepool() << ' '
<< std::setfill(' ') << std::setw(13) << std::right << af_summary_item.total_files() << ' '
<< std::setfill(' ') << std::setw(12) << std::right << af_summary_item.total_size() << ' '
<< std::endl;
}
}} // namespace cta::admin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment