diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-06 02:46:15 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-06 02:51:53 +0200 |
commit | 656fb082a3ab596555ba661ee98ab8400f9dd4f1 (patch) | |
tree | d7e0ee36a8213945f87ea581a458f9f519d5def8 /src | |
parent | d2cd2e05bb6e7e92fc6fadaa318ec37c8b3e062b (diff) | |
download | ouroboros-656fb082a3ab596555ba661ee98ab8400f9dd4f1.tar.gz ouroboros-656fb082a3ab596555ba661ee98ab8400f9dd4f1.zip |
tools: oping: Fix wrong delay calculation
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/oping/oping_client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/oping/oping_client.c b/src/tools/oping/oping_client.c index b47eee6c..0d4a10af 100644 --- a/src/tools/oping/oping_client.c +++ b/src/tools/oping/oping_client.c @@ -115,7 +115,8 @@ void * writer(void * o) { int * fdp = (int *) o; struct timespec now; - struct timespec wait = {client.interval / 1000, client.interval % 1000}; + struct timespec wait = {client.interval / 1000, + (client.interval % 1000) * MILLION}; struct oping_msg * msg; char * buf = malloc(client.size); |