[vlc-commits] stats: make the 1s period explicit

Steve Lhomme git at videolan.org
Sat May 5 18:10:36 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | 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 <remi at remlab.net>

> 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,



More information about the vlc-commits mailing list