From c13da00fdcb995f74f487dd1a340ad48a21791e4 Mon Sep 17 00:00:00 2001
From: Richard Fuchs <rfuchs@sipwise.com>
Date: Fri, 26 Apr 2024 10:21:56 -0400
Subject: [PATCH] MT#55283 fix typo breaking per-sec stats

Change-Id: Ibefcdccbd39f527bdab45e88037db84ab09fcb25
---
 daemon/statistics.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daemon/statistics.c b/daemon/statistics.c
index 7509862af..5dd568f14 100644
--- a/daemon/statistics.c
+++ b/daemon/statistics.c
@@ -1026,7 +1026,7 @@ enum thread_looper_action call_rate_stats_updater(void) {
 
 	stats_rate_min_max(&rtpe_rate_graphite_min_max, &rtpe_stats_rate);
 
-	if (!last_run.tv_sec) { /* `stats_counters_calc_rate()` shouldn't be called on the very first cycle */
+	if (last_run.tv_sec) { /* `stats_counters_calc_rate()` shouldn't be called on the very first cycle */
 		long long run_diff_us = timeval_diff(&rtpe_now, &last_run);
 		stats_counters_calc_rate(&rtpe_stats, run_diff_us, &rtpe_stats_intv, &rtpe_stats_rate);
 	}