summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_batch-withdraw.c
diff options
context:
space:
mode:
authorMarco Boss <bossm8@bfh.ch>2022-05-12 16:15:54 +0200
committerMarco Boss <bossm8@bfh.ch>2022-05-12 16:15:54 +0200
commitdb320d3e8e0e4b6137bb24d429a8f96aa2730e87 (patch)
tree9734ca55abd5ee895ab9630604ea91052918f2f3 /src/exchange/taler-exchange-httpd_batch-withdraw.c
parent7689c71cea7329b871bb2ccd93abd1f4ec3a67ab (diff)
downloadexchange-db320d3e8e0e4b6137bb24d429a8f96aa2730e87.tar.gz
exchange-db320d3e8e0e4b6137bb24d429a8f96aa2730e87.tar.bz2
exchange-db320d3e8e0e4b6137bb24d429a8f96aa2730e87.zip
add metrics for number of coins withdrawn in a batch request
Diffstat (limited to 'src/exchange/taler-exchange-httpd_batch-withdraw.c')
-rw-r--r--src/exchange/taler-exchange-httpd_batch-withdraw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_batch-withdraw.c b/src/exchange/taler-exchange-httpd_batch-withdraw.c
index d272817c0..92a189c0c 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,