From bfbb5ecb447c46b2b10248ab47f980dd968cae68 Mon Sep 17 00:00:00 2001 From: denis <> Date: Wed, 3 Dec 2008 20:36:16 +0000 Subject: stats fuer sync --- ot_livesync.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ot_livesync.c') diff --git a/ot_livesync.c b/ot_livesync.c index f6e4e51..1b1efe0 100644 --- a/ot_livesync.c +++ b/ot_livesync.c @@ -17,6 +17,7 @@ #include "trackerlogic.h" #include "ot_livesync.h" #include "ot_accesslist.h" +#include "ot_stats.h" #ifdef WANT_SYNC_LIVE @@ -152,6 +153,8 @@ static void * livesync_worker( void * args ) { off += sizeof( ot_hash ) + sizeof( ot_peer ); } + + stats_issue_event(EVENT_SYNC, 0, datalen / ((ssize_t)sizeof( ot_hash ) + (ssize_t)sizeof( ot_peer ))); } /* Never returns. */ return NULL; -- cgit v1.2.3