gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: timeout argument is timeout_ms i


From: gnunet
Subject: [taler-merchant] branch master updated: timeout argument is timeout_ms in spec
Date: Sun, 16 Aug 2020 16:43:02 +0200

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

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 391a155  timeout argument is timeout_ms in spec
391a155 is described below

commit 391a155194ead22c3cbe5cdd9f1e27d15a71cbb7
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Aug 16 16:42:59 2020 +0200

    timeout argument is timeout_ms in spec
---
 src/backend/taler-merchant-httpd_get-orders-ID.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.c 
b/src/backend/taler-merchant-httpd_get-orders-ID.c
index ba92316..4807c18 100644
--- a/src/backend/taler-merchant-httpd_get-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_get-orders-ID.c
@@ -969,17 +969,17 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh,
 
     god->generate_html = TMH_MHD_test_html_desired (connection);
     {
-      const char *long_poll_timeout_s;
+      const char *long_poll_timeout_ms;
 
-      long_poll_timeout_s = MHD_lookup_connection_value (connection,
-                                                         MHD_GET_ARGUMENT_KIND,
-                                                         "timeout");
-      if ((NULL != long_poll_timeout_s) &&
+      long_poll_timeout_ms = MHD_lookup_connection_value (connection,
+                                                          
MHD_GET_ARGUMENT_KIND,
+                                                          "timeout_ms");
+      if ((NULL != long_poll_timeout_ms) &&
           ! god->generate_html)
       {
         unsigned int timeout;
 
-        if (1 != sscanf (long_poll_timeout_s,
+        if (1 != sscanf (long_poll_timeout_ms,
                          "%u",
                          &timeout))
         {
@@ -991,7 +991,7 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh,
         }
         god->sc.long_poll_timeout
           = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_relative_multiply (
-                                                GNUNET_TIME_UNIT_SECONDS,
+                                                GNUNET_TIME_UNIT_MILLISECONDS,
                                                 timeout));
       }
       else

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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