[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8440 - GNUnet/src/applications/stats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8440 - GNUnet/src/applications/stats |
Date: |
Fri, 1 May 2009 13:39:23 -0600 |
Author: durner
Date: 2009-05-01 13:39:23 -0600 (Fri, 01 May 2009)
New Revision: 8440
Modified:
GNUnet/src/applications/stats/statistics.c
Log:
PlibC stats
Modified: GNUnet/src/applications/stats/statistics.c
===================================================================
--- GNUnet/src/applications/stats/statistics.c 2009-04-28 20:15:43 UTC (rev
8439)
+++ GNUnet/src/applications/stats/statistics.c 2009-05-01 19:39:23 UTC (rev
8440)
@@ -218,6 +218,10 @@
static int stat_connected;
#ifdef MINGW
static int stat_handles;
+static int stat_socks;
+static int stat_maps;
+extern unsigned int uiSockCount;
+extern unsigned int uiMappingsCount;
#endif
#if HAVE_MEMSTATS
static int stat_mem;
@@ -249,6 +253,8 @@
= statHandle (gettext_noop ("# bytes of noise received"));
#ifdef MINGW
stat_handles = statHandle (gettext_noop ("# plibc handles"));
+ stat_socks = statHandle (gettext_noop ("# plibc socks"));
+ stat_maps = statHandle (gettext_noop ("# plibc maps"));
#endif
#if HAVE_MEMSTATS
stat_mem = statHandle ("# bytes dynamically allocated");
@@ -285,6 +291,8 @@
statSet (stat_connected, coreAPI->p2p_connections_iterate (NULL, NULL));
#ifdef MINGW
statSet (stat_handles, plibc_get_handle_count ());
+ statSet (stat_socks, uiSockCount);
+ statSet (stat_maps, uiMappingsCount);
#endif
#if HAVE_MEMSTATS
statSet (stat_mem, GNUNET_memory_usage);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8440 - GNUnet/src/applications/stats,
gnunet <=