diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-01-16 12:05:37 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-01-16 12:05:37 +0100 |
commit | 8d4a68a3c5c2910f7868a54847e47e813664621b (patch) | |
tree | eba33a0b4deee42e84db0b5eac3befc858d40a68 | |
parent | 62b6a31a18148aacdfd433d25841766a6cf99848 (diff) | |
download | dabmod-8d4a68a3c5c2910f7868a54847e47e813664621b.tar.gz dabmod-8d4a68a3c5c2910f7868a54847e47e813664621b.tar.bz2 dabmod-8d4a68a3c5c2910f7868a54847e47e813664621b.zip |
Show seconds and PPS in OutputFile metadata
-rw-r--r-- | TODO | 4 | ||||
-rw-r--r-- | src/OutputFile.cpp | 6 |
2 files changed, 8 insertions, 2 deletions
@@ -51,6 +51,10 @@ Tests, both with B200 and LimeSDR: - Proper teardown - DPD server +Replace all prints to stderr +---------------------------- +We have a nice logging subsystem, use it to avoid that fprintf(stderr, ...) and +logging to stderr messages collide. Finalise EDI input ------------------ diff --git a/src/OutputFile.cpp b/src/OutputFile.cpp index f5a1997..46a9ec9 100644 --- a/src/OutputFile.cpp +++ b/src/OutputFile.cpp @@ -77,10 +77,12 @@ meta_vec_t OutputFile::process_metadata(const meta_vec_t& metadataIn) ss << " FCT=" << md.ts->fct << " FP=" << (int)md.ts->fp; if (md.ts->timestamp_valid) { - ss << " TS=" << md.ts->timestamp_sec << ";"; + ss << " TS=" << md.ts->timestamp_sec << " + " << + std::fixed + << (double)md.ts->timestamp_pps / 163840000.0 << ";"; } else { - ss << " No TS;"; + ss << " TS invalid;"; } } else { |