gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-merchant] branch master updated: rounding /history d


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: rounding /history date parameter
Date: Wed, 26 Jul 2017 12:44:14 +0200

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

marcello pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 479bfd4  rounding /history date parameter
479bfd4 is described below

commit 479bfd47071ca61b98d06842bd94d4d86d48d44d
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Jul 26 12:43:52 2017 +0200

    rounding /history date parameter
---
 src/lib/test_merchant_api.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/test_merchant_api.c b/src/lib/test_merchant_api.c
index ff1cbe0..899f186 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,

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



reply via email to

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