[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5752 - GNUnet/src/applications/stats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5752 - GNUnet/src/applications/stats |
Date: |
Sat, 24 Nov 2007 16:00:12 -0700 (MST) |
Author: durner
Date: 2007-11-24 16:00:11 -0700 (Sat, 24 Nov 2007)
New Revision: 5752
Modified:
GNUnet/src/applications/stats/statistics.c
Log:
display number of PlibC handles
Modified: GNUnet/src/applications/stats/statistics.c
===================================================================
--- GNUnet/src/applications/stats/statistics.c 2007-11-24 22:50:52 UTC (rev
5751)
+++ GNUnet/src/applications/stats/statistics.c 2007-11-24 23:00:11 UTC (rev
5752)
@@ -209,6 +209,7 @@
static int stat_handle_io_load;
static int stat_bytes_noise_received;
static int stat_connected;
+static int stat_handles;
static Stats_ServiceAPI *stats;
static CoreAPIForApplication *myCoreAPI;
@@ -216,6 +217,8 @@
#include "sqstats.c"
#endif
+extern unsigned int uiHandleCount;
+
static void
initializeStats ()
{
@@ -228,6 +231,7 @@
stat_connected = statHandle (gettext_noop ("# of connected peers"));
stat_bytes_noise_received
= statHandle (gettext_noop ("# bytes of noise received"));
+ stat_handles = statHandle(gettext_noop ("# plibc handles"));
}
static void
@@ -258,6 +262,7 @@
load = 0;
statSet (stat_handle_network_load_down, load);
statSet (stat_connected, coreAPI->forAllConnectedNodes (NULL, NULL));
+ statSet (stat_handles, plibc_get_handle_count());
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5752 - GNUnet/src/applications/stats,
gnunet <=