summaryrefslogtreecommitdiffstats
path: root/src/utils.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-07-25 09:08:28 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-07-25 09:08:28 +0200
commitb6f7c8123810ca8394f8658de14bf0e67a2557eb (patch)
treeb28f91ad83678986eb18b72a7701bec92e14190d /src/utils.cpp
parent0af0c6f1613fc8acc2d676341b32eb489c57491c (diff)
downloaddabmux-b6f7c8123810ca8394f8658de14bf0e67a2557eb.tar.gz
dabmux-b6f7c8123810ca8394f8658de14bf0e67a2557eb.tar.bz2
dabmux-b6f7c8123810ca8394f8658de14bf0e67a2557eb.zip
Calculate total number of CUs and print in summary
Diffstat (limited to 'src/utils.cpp')
-rw-r--r--src/utils.cpp5
1 files changed, 5 insertions, 0 deletions
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<dabEnsemble>& ensemble)