[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r19970 - gnunet/src/nse
From: |
gnunet |
Subject: |
[GNUnet-SVN] r19970 - gnunet/src/nse |
Date: |
Thu, 23 Feb 2012 15:56:27 +0100 |
Author: bartpolot
Date: 2012-02-23 15:56:27 +0100 (Thu, 23 Feb 2012)
New Revision: 19970
Modified:
gnunet/src/nse/gnunet-nse-profiler.c
Log:
- Gather more stats
Modified: gnunet/src/nse/gnunet-nse-profiler.c
===================================================================
--- gnunet/src/nse/gnunet-nse-profiler.c 2012-02-23 14:56:01 UTC (rev
19969)
+++ gnunet/src/nse/gnunet-nse-profiler.c 2012-02-23 14:56:27 UTC (rev
19970)
@@ -73,6 +73,11 @@
* How many extra messages per edge (corrections) have been received.
*/
unsigned long long total_nse_extra;
+
+ /**
+ * How many messages have been discarded.
+ */
+ unsigned long long total_discarded;
};
@@ -455,6 +460,17 @@
}
GNUNET_free_non_null (buf);
+ buf = NULL;
+ buf_len =
+ GNUNET_asprintf (&buf, "TOTAL_NSE_DISCARDED_%d: %u \n",
+ stats_context->shutdown,
+ stats_context->total_discarded);
+ if (buf_len > 0)
+ {
+ GNUNET_DISK_file_write (data_file, buf, buf_len);
+ }
+ GNUNET_free_non_null (buf);
+
}
if (GNUNET_YES == stats_context->shutdown)
@@ -540,6 +556,10 @@
{
stats_context->total_nse_extra += value;
}
+ if (0 == strcmp (name, "# flood messages discarded (clock skew too
large)"))
+ {
+ stats_context->total_discarded += value;
+ }
}
return GNUNET_OK;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r19970 - gnunet/src/nse,
gnunet <=