Pretend that statistics is collected at least for a second on start.

This commit is contained in:
levlam 2022-06-21 20:06:39 +03:00
parent 375d3d23fb
commit 70f7373729

View File

@ -18,7 +18,7 @@ template <class StatT>
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) {
}