aboutsummaryrefslogtreecommitdiffstats
path: root/lib/edi/common.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-08-20 15:02:41 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-08-20 15:02:41 +0200
commit11a5d823958ec103c6a473a7fa322847ca74dee7 (patch)
treeda094c781430dae17816a4f264fe93261da4aea2 /lib/edi/common.cpp
parent2306377230caee715de737ba6edd68e8a878fa97 (diff)
downloaddabmod-11a5d823958ec103c6a473a7fa322847ca74dee7.tar.gz
dabmod-11a5d823958ec103c6a473a7fa322847ca74dee7.tar.bz2
dabmod-11a5d823958ec103c6a473a7fa322847ca74dee7.zip
Common: improve multicast reception
Diffstat (limited to 'lib/edi/common.cpp')
-rw-r--r--lib/edi/common.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/edi/common.cpp b/lib/edi/common.cpp
index b314737..38eadf9 100644
--- a/lib/edi/common.cpp
+++ b/lib/edi/common.cpp
@@ -33,9 +33,9 @@ namespace EdiDecoder {
using namespace std;
-bool frame_timestamp_t::valid() const
+bool frame_timestamp_t::is_valid() const
{
- return tsta != 0xFFFFFF;
+ return tsta != 0xFFFFFF and seconds != 0;
}
string frame_timestamp_t::to_string() const
@@ -43,7 +43,7 @@ string frame_timestamp_t::to_string() const
const time_t seconds_in_unix_epoch = to_unix_epoch();
stringstream ss;
- if (valid()) {
+ if (is_valid()) {
ss << "Timestamp: ";
}
else {