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: date parameter = no


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: date parameter = now when /history doesn't get one.
Date: Wed, 22 Mar 2017 18:50:53 +0100

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 fef322c  date parameter = now when /history doesn't get one.
fef322c is described below

commit fef322cdbeea71f0323cdeff6427d90c91d0bcb4
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Mar 22 18:50:25 2017 +0100

    date parameter = now when /history doesn't get one.
---
 src/backend/taler-merchant-httpd_history.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_history.c 
b/src/backend/taler-merchant-httpd_history.c
index e7bd12d..eecb156 100644
--- a/src/backend/taler-merchant-httpd_history.c
+++ b/src/backend/taler-merchant-httpd_history.c
@@ -105,7 +105,8 @@ MH_handler_history (struct TMH_RequestHandler *rh,
                                      MHD_GET_ARGUMENT_KIND,
                                      "date");
 
-  seconds = 0;
+  date = GNUNET_TIME_absolute_get ();
+
   if (NULL != str)
   {
     if (1 != sscanf (str, "%llu", &seconds))
@@ -115,9 +116,9 @@ MH_handler_history (struct TMH_RequestHandler *rh,
                                              TALER_EC_PARAMETER_MALFORMED,
                                              "date");
     }
-  }
 
   date.abs_value_us = seconds * 1000LL * 1000LL;
+
   if (date.abs_value_us / 1000LL / 1000LL != seconds)
   {
     json_decref (response);
@@ -127,6 +128,8 @@ MH_handler_history (struct TMH_RequestHandler *rh,
   }
 
 
+  }
+
   mi = TMH_lookup_instance ("default");
   str = MHD_lookup_connection_value (connection,
                                      MHD_GET_ARGUMENT_KIND,

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



reply via email to

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