Pretend that statistics is collected at least for a second on start.
This commit is contained in:
parent
375d3d23fb
commit
70f7373729
@ -18,7 +18,7 @@ template <class StatT>
|
|||||||
class TimedStat {
|
class TimedStat {
|
||||||
public:
|
public:
|
||||||
TimedStat(double duration, double now)
|
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) {
|
TimedStat() : TimedStat(0, 0) {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user