From 60899d2a0039717e7264be471201e47ab6807344 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Fri, 1 Aug 2014 14:55:14 -0700 Subject: [PATCH] oops --- tests/jitter/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/jitter/src/main.cpp b/tests/jitter/src/main.cpp index 23199f03b3..f93e91e5cf 100644 --- a/tests/jitter/src/main.cpp +++ b/tests/jitter/src/main.cpp @@ -65,7 +65,7 @@ void runSend(const char* addressOption, int port, int gap, int size) { servaddr.sin_addr.s_addr=inet_addr(addressOption); servaddr.sin_port=htons(port); - const int SAMPLES_FOR_30_SECONDS = 30 * 1000 / gap; + const int SAMPLES_FOR_30_SECONDS = 30 * 1000000 / gap; MovingMinMaxAvg timeGaps(1, SAMPLES_FOR_30_SECONDS); // stats quint64 last = usecTimestampNow(); @@ -112,7 +112,7 @@ void runReceive(const char* addressOption, int port, int gap, int size) { myaddr.sin_addr.s_addr=htonl(INADDR_ANY); myaddr.sin_port=htons(port); - const int SAMPLES_FOR_30_SECONDS = 30 * 1000 / gap; + const int SAMPLES_FOR_30_SECONDS = 30 * 1000000 / gap; MovingMinMaxAvg timeGaps(1, SAMPLES_FOR_30_SECONDS); // stats if (bind(sockfd, (struct sockaddr *)&myaddr, sizeof(myaddr)) < 0) {