gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-exchange] branch master updated: fix reservemod issu


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: fix reservemod issue with time rounding
Date: Fri, 08 Dec 2017 12:45:27 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 40244c9  fix  reservemod issue with time rounding
40244c9 is described below

commit 40244c9ca8b2c6af15fa6020236649ec316a5f29
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Dec 8 12:45:25 2017 +0100

    fix  reservemod issue with time rounding
---
 src/exchange-tools/taler-exchange-reservemod.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/exchange-tools/taler-exchange-reservemod.c 
b/src/exchange-tools/taler-exchange-reservemod.c
index 84595d1..e901b69 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));

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]