summaryrefslogtreecommitdiff
path: root/src/tools/oping
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-08-06 02:46:15 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-08-06 02:51:53 +0200
commit656fb082a3ab596555ba661ee98ab8400f9dd4f1 (patch)
treed7e0ee36a8213945f87ea581a458f9f519d5def8 /src/tools/oping
parentd2cd2e05bb6e7e92fc6fadaa318ec37c8b3e062b (diff)
downloadouroboros-656fb082a3ab596555ba661ee98ab8400f9dd4f1.tar.gz
ouroboros-656fb082a3ab596555ba661ee98ab8400f9dd4f1.zip
tools: oping: Fix wrong delay calculation
Diffstat (limited to 'src/tools/oping')
-rw-r--r--src/tools/oping/oping_client.c3
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);