aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-12-08 12:45:25 +0100
committerChristian Grothoff <christian@grothoff.org>2017-12-08 12:45:25 +0100
commit40244c9ca8b2c6af15fa6020236649ec316a5f29 (patch)
treec51e746352eb37f727ca9849312c4cedb3755ad3 /src
parent042616899f89d38167632e3ff24b16469a27fbef (diff)
fix reservemod issue with time rounding
Diffstat (limited to 'src')
-rw-r--r--src/exchange-tools/taler-exchange-reservemod.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/exchange-tools/taler-exchange-reservemod.c b/src/exchange-tools/taler-exchange-reservemod.c
index 84595d199..e901b694d 100644
--- a/src/exchange-tools/taler-exchange-reservemod.c
+++ b/src/exchange-tools/taler-exchange-reservemod.c
@@ -81,6 +81,7 @@ run_transaction (const struct TALER_ReservePublicKeyP *reserve_pub,
int ret;
struct TALER_EXCHANGEDB_Session *session;
void *json_str;
+ struct GNUNET_TIME_Absolute now;
session = plugin->get_session (plugin->cls);
if (NULL == session)
@@ -97,11 +98,13 @@ run_transaction (const struct TALER_ReservePublicKeyP *reserve_pub,
GNUNET_break (0); /* out of memory? */
return GNUNET_SYSERR;
}
+ now = GNUNET_TIME_absolute_get ();
+ (void) GNUNET_TIME_round_abs (&now);
ret = plugin->reserves_in_insert (plugin->cls,
session,
reserve_pub,
add_value,
- GNUNET_TIME_absolute_get (),
+ now,
jdetails,
json_str,
strlen (json_str));