From b6f7c8123810ca8394f8658de14bf0e67a2557eb Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 25 Jul 2018 09:08:28 +0200 Subject: Calculate total number of CUs and print in summary --- src/utils.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils.cpp b/src/utils.cpp index 33b8a98..8a3e7d3 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -321,6 +321,8 @@ void printSubchannels(const vec_sp_subchannel& subchannels) { int index = 0; + int total_num_cu = 0; + for (auto subchannel : subchannels) { dabProtection* protection = &subchannel->protection; etiLog.level(info) << "Subchannel " << subchannel->uid; @@ -365,8 +367,11 @@ void printSubchannels(const vec_sp_subchannel& subchannels) subchannel->startAddress); etiLog.log(info, " size (CU): %i", subchannel->getSizeCu()); + total_num_cu += subchannel->getSizeCu(); ++index; } + + etiLog.log(info, "Total ensemble size (CU): %i", total_num_cu); } static void printLinking(const shared_ptr& ensemble) -- cgit v1.2.3