diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-20 18:38:57 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-20 18:38:57 +0100 |
commit | 1b24e2f9bb84d64ff07f28a330e1913de790df0c (patch) | |
tree | a5290dc393dc2ef06ceb052c48a588e650c93b5e /src/testing/testing_api_cmd_withdraw.c | |
parent | b9186bdd788b544fbbc349f655b93389fd301211 (diff) | |
download | exchange-1b24e2f9bb84d64ff07f28a330e1913de790df0c.tar.xz |
more statistics, make explicit table lock optional, can hurt performance badly
Diffstat (limited to 'src/testing/testing_api_cmd_withdraw.c')
-rw-r--r-- | src/testing/testing_api_cmd_withdraw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testing/testing_api_cmd_withdraw.c b/src/testing/testing_api_cmd_withdraw.c index 1ef341e0a..8ecf52011 100644 --- a/src/testing/testing_api_cmd_withdraw.c +++ b/src/testing/testing_api_cmd_withdraw.c @@ -152,6 +152,8 @@ do_retry (void *cls) struct WithdrawState *ws = cls; ws->retry_task = NULL; + ws->is->commands[ws->is->ip].last_req_time + = GNUNET_TIME_absolute_get (); withdraw_run (ws, NULL, ws->is); @@ -208,6 +210,7 @@ reserve_withdraw_cb (void *cls, UNKNOWN_MAX_BACKOFF); ws->total_backoff = GNUNET_TIME_relative_add (ws->total_backoff, ws->backoff); + ws->is->commands[ws->is->ip].num_tries++; ws->retry_task = GNUNET_SCHEDULER_add_delayed (ws->backoff, &do_retry, ws); |