[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r20912 - gnunet/src/integration-tests
From: |
gnunet |
Subject: |
[GNUnet-SVN] r20912 - gnunet/src/integration-tests |
Date: |
Tue, 10 Apr 2012 10:56:10 +0200 |
Author: wachs
Date: 2012-04-10 10:56:10 +0200 (Tue, 10 Apr 2012)
New Revision: 20912
Modified:
gnunet/src/integration-tests/connection_watchdog.c
Log:
- mod
Modified: gnunet/src/integration-tests/connection_watchdog.c
===================================================================
--- gnunet/src/integration-tests/connection_watchdog.c 2012-04-09 14:56:10 UTC
(rev 20911)
+++ gnunet/src/integration-tests/connection_watchdog.c 2012-04-10 08:56:10 UTC
(rev 20912)
@@ -164,15 +164,6 @@
transport_connections, statistics_transport_connections);
fail = GNUNET_YES;
}
-
- if (transport_connections != statistics_transport_tcp_connections)
- {
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Transport connections are inconsistent: %u transport notifications
<-> %u in statistics (statistics_transport_tcp_connections)\n",
- transport_connections, statistics_transport_tcp_connections);
- fail = GNUNET_YES;
- }
-
if (core_connections != statistics_core_entries_session_map)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
@@ -193,6 +184,20 @@
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Statistics consistency check successful : (%u transport / %u core)
connections established\n", transport_connections, core_connections);
+ /* This is only an issue when transport_connections >
statistics_transport_tcp_connections */
+ if (transport_connections > statistics_transport_tcp_connections)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Transport connections are inconsistent: %u transport notifications
<-> %u in statistics (statistics_transport_tcp_connections)\n",
+ transport_connections, statistics_transport_tcp_connections);
+ fail = GNUNET_YES;
+ }
+ else
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Transport connections are inconsistent: %u transport notifications
<-> %u in statistics (statistics_transport_tcp_connections)\n",
+ transport_connections, statistics_transport_tcp_connections);
+ }
if (GNUNET_SCHEDULER_NO_TASK == statistics_task)
statistics_task = GNUNET_SCHEDULER_add_delayed(REPEATED_STATS_DELAY,
&stats_check, NULL);
@@ -522,7 +527,7 @@
GNUNET_GETOPT_OPTION_END
};
return (GNUNET_OK ==
- GNUNET_PROGRAM_run (argc, argv, "gnunet-template",
+ GNUNET_PROGRAM_run (argc, argv, "connection-watchdog",
gettext_noop ("help text"), options, &run,
NULL)) ? ret : 1;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r20912 - gnunet/src/integration-tests,
gnunet <=