From 065a1c6f097776851f4f63c7cb79bca5a2672ac5 Mon Sep 17 00:00:00 2001 From: gardners Date: Sun, 17 Feb 2013 17:23:14 +1030 Subject: [PATCH] add periodic rhizome transfer statistics --- performance_timing.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/performance_timing.c b/performance_timing.c index 3a7d0825..06460c1f 100644 --- a/performance_timing.c +++ b/performance_timing.c @@ -148,7 +148,21 @@ int fd_showstats() fd_tallystats(&total,stats); stats = stats->_next; } - + + // Show periodic rhizome transfer information, but only + // if there are some active rhizome transfers. + if ((rhizome_active_fetch_bytes_received(0)+ + rhizome_active_fetch_bytes_received(1)+ + rhizome_active_fetch_bytes_received(2)+ + rhizome_active_fetch_bytes_received(3)+ + rhizome_active_fetch_bytes_received(4))!=-5) + INFOF("Rhizome transfer progress: %d,%d,%d,%d,%d", + rhizome_active_fetch_bytes_received(0), + rhizome_active_fetch_bytes_received(1), + rhizome_active_fetch_bytes_received(2), + rhizome_active_fetch_bytes_received(3), + rhizome_active_fetch_bytes_received(4)); + // Report any functions that take too much time if (!config.debug.timing) {