From de8df93471e70fc585670879b12a9539517c3ea0 Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Mon, 8 Aug 2022 12:19:04 +0100 Subject: [PATCH] Comment out an unused variable. --- rtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtp.c b/rtp.c index 169a5f38..844f55fe 100644 --- a/rtp.c +++ b/rtp.c @@ -723,7 +723,7 @@ void *rtp_timing_receiver(void *arg) { // for getting mean and sd of return times int32_t stat_n = 0; double stat_mean = 0.0; - double stat_M2 = 0.0; + // double stat_M2 = 0.0; while (1) { nread = recv(conn->timing_socket, packet, sizeof(packet), 0); @@ -813,7 +813,7 @@ void *rtp_timing_receiver(void *arg) { stat_n += 1; double stat_delta = return_time - stat_mean; stat_mean += stat_delta / stat_n; - stat_M2 += stat_delta * (return_time - stat_mean); + // stat_M2 += stat_delta * (return_time - stat_mean); // debug(1, "Timing packet return time stats: current, mean and standard deviation over // %d packets: %.1f, %.1f, %.1f (nanoseconds).", // stat_n,return_time,stat_mean, sqrtf(stat_M2 / (stat_n - 1)));