Commit b431b24d authored by Steve Lhomme's avatar Steve Lhomme Committed by Rémi Denis-Courmont

stats: make the 1s period explicit

Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent d57ae057
......@@ -126,7 +126,7 @@ void input_rate_Add(input_rate_t *counter, uintmax_t val)
/* Ignore samples within a second of another */
mtime_t now = mdate();
if (counter->samples[0].date != VLC_TS_INVALID
&& (now - counter->samples[0].date) < CLOCK_FREQ)
&& (now - counter->samples[0].date) < 1*CLOCK_FREQ)
return;
memcpy(counter->samples + 1, counter->samples,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment