]> git.sesse.net Git - nageru/blobdiff - mixer.h
Add a metric for number of received frames per input, so that one can measure _actual...
[nageru] / mixer.h
diff --git a/mixer.h b/mixer.h
index e2490ede7d9245b43db081f73abc3b975e605e59..e142a76e8789fad9604fc47d6167e8d3f9eee46e 100644 (file)
--- a/mixer.h
+++ b/mixer.h
@@ -455,6 +455,7 @@ private:
                int last_timecode = -1;  // Unwrapped.
 
                // Metrics.
+               std::atomic<int64_t> metric_input_received_frames{0};
                std::atomic<int64_t> metric_input_dropped_frames_jitter{0};
                std::atomic<int64_t> metric_input_dropped_frames_error{0};
                std::atomic<int64_t> metric_input_resets{0};
@@ -543,7 +544,7 @@ private:
        // Metrics.
        std::atomic<int64_t> metric_frames_output_total{0};
        std::atomic<int64_t> metric_frames_output_dropped{0};
-       std::atomic<double> metric_uptime_seconds{0.0};
+       std::atomic<double> metric_start_time_seconds{0.0 / 0.0};
        std::atomic<int64_t> metrics_memory_used_bytes{0};
        std::atomic<double> metrics_memory_locked_limit_bytes{0.0 / 0.0};
 };