vlc | branch: master | Steve Lhomme <[email protected]> | Sat May  5 10:14:40 
2018 +0200| [b431b24ddb4afcb93fd28ddcd76f590df87d0c34] | committer: Rémi 
Denis-Courmont

stats: make the 1s period explicit

Signed-off-by: Rémi Denis-Courmont <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b431b24ddb4afcb93fd28ddcd76f590df87d0c34
---

 src/input/stats.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/stats.c b/src/input/stats.c
index 3322ea798f..3ae2909da8 100644
--- a/src/input/stats.c
+++ b/src/input/stats.c
@@ -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,

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to