[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5762 - GNUnet/src/applications/stats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5762 - GNUnet/src/applications/stats |
Date: |
Sun, 25 Nov 2007 05:09:38 -0700 (MST) |
Author: durner
Date: 2007-11-25 05:09:37 -0700 (Sun, 25 Nov 2007)
New Revision: 5762
Modified:
GNUnet/src/applications/stats/statistics.c
Log:
retrieve plibc stats on MinGW only
Modified: GNUnet/src/applications/stats/statistics.c
===================================================================
--- GNUnet/src/applications/stats/statistics.c 2007-11-25 12:07:29 UTC (rev
5761)
+++ GNUnet/src/applications/stats/statistics.c 2007-11-25 12:09:37 UTC (rev
5762)
@@ -209,7 +209,9 @@
static int stat_handle_io_load;
static int stat_bytes_noise_received;
static int stat_connected;
+#ifdef MINGW
static int stat_handles;
+#endif
static GNUNET_Stats_ServiceAPI *stats;
static GNUNET_CoreAPIForPlugins *myCoreAPI;
@@ -231,7 +233,9 @@
stat_connected = statHandle (gettext_noop ("# of connected peers"));
stat_bytes_noise_received
= statHandle (gettext_noop ("# bytes of noise received"));
+#ifdef MINGW
stat_handles = statHandle (gettext_noop ("# plibc handles"));
+#endif
}
static void
@@ -262,7 +266,9 @@
load = 0;
statSet (stat_handle_network_load_down, load);
statSet (stat_connected, coreAPI->forAllConnectedNodes (NULL, NULL));
+#ifdef MINGW
statSet (stat_handles, plibc_get_handle_count ());
+#endif
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5762 - GNUnet/src/applications/stats,
gnunet <=