mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 11:46:34 +02:00
oops
This commit is contained in:
parent
ca4bca7042
commit
60899d2a00
1 changed files with 2 additions and 2 deletions
|
@ -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<int> 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<int> timeGaps(1, SAMPLES_FOR_30_SECONDS); // stats
|
||||
|
||||
if (bind(sockfd, (struct sockaddr *)&myaddr, sizeof(myaddr)) < 0) {
|
||||
|
|
Loading…
Reference in a new issue