From 70f737372963e72324943aac04491ada844b1c9f Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 21 Jun 2022 20:06:39 +0300 Subject: [PATCH] Pretend that statistics is collected at least for a second on start. --- tdutils/td/utils/TimedStat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdutils/td/utils/TimedStat.h b/tdutils/td/utils/TimedStat.h index ad11444a7..f22129566 100644 --- a/tdutils/td/utils/TimedStat.h +++ b/tdutils/td/utils/TimedStat.h @@ -18,7 +18,7 @@ template class TimedStat { public: TimedStat(double duration, double now) - : duration_(duration), current_(), current_timestamp_(now), next_(), next_timestamp_(now) { + : duration_(duration), current_(), current_timestamp_(now - 1), next_(), next_timestamp_(now) { } TimedStat() : TimedStat(0, 0) { }