From d3d51d2957298ea76b90b4c864e380ebf289ba37 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Tue, 19 Jan 2021 16:57:41 +0100 Subject: [PATCH] Adjust stats to new stream workings --- sf-stream/include/StreamStats.hpp | 3 +-- sf-stream/src/StreamStats.cpp | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sf-stream/include/StreamStats.hpp b/sf-stream/include/StreamStats.hpp index a91db57..bca5ce0 100644 --- a/sf-stream/include/StreamStats.hpp +++ b/sf-stream/include/StreamStats.hpp @@ -12,7 +12,6 @@ class StreamStats { int image_counter_; int n_corrupted_images_; - int n_sync_lost_images_; std::chrono::time_point stats_interval_start_; void reset_counters(); @@ -23,7 +22,7 @@ public: const std::string &stream_name, const size_t stats_modulo); - void record_stats(const ImageMetadata &meta, const uint32_t n_lost_pulses); + void record_stats(const ImageMetadata &meta); }; diff --git a/sf-stream/src/StreamStats.cpp b/sf-stream/src/StreamStats.cpp index bed448d..7408629 100644 --- a/sf-stream/src/StreamStats.cpp +++ b/sf-stream/src/StreamStats.cpp @@ -19,16 +19,14 @@ StreamStats::StreamStats( void StreamStats::reset_counters() { image_counter_ = 0; - n_sync_lost_images_ = 0; n_corrupted_images_ = 0; stats_interval_start_ = steady_clock::now(); } void StreamStats::record_stats( - const ImageMetadata &meta, const uint32_t n_lost_pulses) + const ImageMetadata &meta) { image_counter_++; - n_sync_lost_images_ += n_lost_pulses; if (!meta.is_good_image) { n_corrupted_images_++; @@ -56,7 +54,6 @@ void StreamStats::print_stats() cout << " "; cout << "n_processed_images=" << image_counter_ << "i"; cout << ",n_corrupted_images=" << n_corrupted_images_ << "i"; - cout << ",n_sync_lost_images=" << n_sync_lost_images_ << "i"; cout << ",repetition_rate=" << rep_rate << "i"; cout << " "; cout << timestamp;