gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r31281 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r31281 - gnunet/src/transport
Date: Wed, 11 Dec 2013 16:37:49 +0100

Author: wachs
Date: 2013-12-11 16:37:48 +0100 (Wed, 11 Dec 2013)
New Revision: 31281

Modified:
   gnunet/src/transport/plugin_transport_http_client.c
Log:
use a define as statistic string to be sure to set the same value


Modified: gnunet/src/transport/plugin_transport_http_client.c
===================================================================
--- gnunet/src/transport/plugin_transport_http_client.c 2013-12-11 15:07:59 UTC 
(rev 31280)
+++ gnunet/src/transport/plugin_transport_http_client.c 2013-12-11 15:37:48 UTC 
(rev 31281)
@@ -26,10 +26,12 @@
 
 #if BUILD_HTTPS
 #define PLUGIN_NAME "https_client"
+#define HTTP_STAT_STR_CONNECTIONS "# HTTPS client connections"
 #define LIBGNUNET_PLUGIN_TRANSPORT_INIT 
libgnunet_plugin_transport_https_client_init
 #define LIBGNUNET_PLUGIN_TRANSPORT_DONE 
libgnunet_plugin_transport_https_client_done
 #else
 #define PLUGIN_NAME "http_client"
+#define HTTP_STAT_STR_CONNECTIONS "# HTTP client connections"
 #define LIBGNUNET_PLUGIN_TRANSPORT_INIT 
libgnunet_plugin_transport_http_client_init
 #define LIBGNUNET_PLUGIN_TRANSPORT_DONE 
libgnunet_plugin_transport_http_client_done
 #endif
@@ -697,7 +699,7 @@
   GNUNET_assert (plugin->cur_connections >= 2);
   plugin->cur_connections -= 2;
   GNUNET_STATISTICS_set (plugin->env->stats,
-      "# HTTP client sessions",
+      HTTP_STAT_STR_CONNECTIONS,
       plugin->cur_connections,
       GNUNET_NO);
 
@@ -1428,7 +1430,7 @@
   /* Perform connect */
   plugin->cur_connections += 2;
   GNUNET_STATISTICS_set (plugin->env->stats,
-      "# HTTP client connections",
+      HTTP_STAT_STR_CONNECTIONS,
       plugin->cur_connections,
       GNUNET_NO);
 




reply via email to

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