diff --git a/examples/tcpblaster/tcpblaster_client.c b/examples/tcpblaster/tcpblaster_client.c index 62f3d3938..8407335c3 100644 --- a/examples/tcpblaster/tcpblaster_client.c +++ b/examples/tcpblaster/tcpblaster_client.c @@ -189,6 +189,7 @@ void tcpblaster_client(void) else { unsigned long borrow = 1000000000 - start.tv_nsec; + elapsed.tv_sec--; elapsed.tv_nsec = curr.tv_nsec + borrow; } diff --git a/examples/tcpblaster/tcpblaster_server.c b/examples/tcpblaster/tcpblaster_server.c index 5029e8781..b974918c6 100644 --- a/examples/tcpblaster/tcpblaster_server.c +++ b/examples/tcpblaster/tcpblaster_server.c @@ -218,6 +218,7 @@ void tcpblaster_server(void) else { unsigned long borrow = 1000000000 - start.tv_nsec; + elapsed.tv_sec--; elapsed.tv_nsec = curr.tv_nsec + borrow; }