From 6c8d97ace30ba8259d1ce1054f8d8ca8c98d2b95 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Mon, 24 Mar 2014 07:50:11 -0400 Subject: [PATCH] [Client] With -N, print nb of remaining trx When the -N option is used, the number of remaining request transmissions is printed after each transmission. --- owlps-client/owlps-client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/owlps-client/owlps-client.c b/owlps-client/owlps-client.c index ba93153..4a069a2 100644 --- a/owlps-client/owlps-client.c +++ b/owlps-client/owlps-client.c @@ -166,6 +166,10 @@ int main(int argc, char *argv[]) uint_fast32_t trx_time, sleep_time ; owl_timestamp now ; + if (options.verbose && options.nb_requests) + printf("%"PRIuFAST16" more requests to transmit.\n", + nb_requests_left) ; + if (options.add_flood_delay) owl_msleep(options.flood_delay) ; else