From db320d3e8e0e4b6137bb24d429a8f96aa2730e87 Mon Sep 17 00:00:00 2001 From: Marco Boss Date: Thu, 12 May 2022 16:15:54 +0200 Subject: add metrics for number of coins withdrawn in a batch request --- src/exchange/taler-exchange-httpd_batch-withdraw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/exchange/taler-exchange-httpd_batch-withdraw.c') diff --git a/src/exchange/taler-exchange-httpd_batch-withdraw.c b/src/exchange/taler-exchange-httpd_batch-withdraw.c index d272817c..92a189c0 100644 --- a/src/exchange/taler-exchange-httpd_batch-withdraw.c +++ b/src/exchange/taler-exchange-httpd_batch-withdraw.c @@ -299,8 +299,8 @@ batch_withdraw_transaction (void *cls, bool nonce_reuse = true; nonce = (TALER_DENOMINATION_CS == bp->cipher) - ? &bp->details.cs_blinded_planchet.nonce - : NULL; + ? &bp->details.cs_blinded_planchet.nonce + : NULL; qs = TEH_plugin->do_batch_withdraw_insert (TEH_plugin->cls, nonce, &pc->collectable, @@ -472,6 +472,7 @@ prepare_transaction (struct TEH_RequestContext *rc, "ev_sig", &pc->collectable.sig)))); } + TEH_METRICS_batch_withdraw_num_coins += wc->planchets_length; return TALER_MHD_REPLY_JSON_PACK ( rc->connection, MHD_HTTP_OK, -- cgit v1.2.3