aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-07-26 12:43:52 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-07-26 12:43:52 +0200
commit479bfd47071ca61b98d06842bd94d4d86d48d44d (patch)
tree4f019efc47cc99763a223ccf7823391f65828d15
parentfb251bf9d7ba5adf82ca0204df9f7cb7ee47b2ab (diff)
rounding /history date parameter
-rw-r--r--src/lib/test_merchant_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/test_merchant_api.c b/src/lib/test_merchant_api.c
index ff1cbe09..899f186a 100644
--- a/src/lib/test_merchant_api.c
+++ b/src/lib/test_merchant_api.c
@@ -2252,9 +2252,12 @@ interpreter_run (void *cls)
}
case OC_HISTORY:
if (0 == cmd->details.history.date.abs_value_us)
+ {
cmd->details.history.date = GNUNET_TIME_absolute_add
(GNUNET_TIME_absolute_get (),
GNUNET_TIME_UNIT_HOURS);
+ GNUNET_TIME_round_abs (&cmd->details.history.date);
+ }
if (NULL == (cmd->details.history.ho
= TALER_MERCHANT_history (ctx,
MERCHANT_URI,