diff options
author | denis <> | 2008-12-03 20:36:16 +0000 |
---|---|---|
committer | denis <> | 2008-12-03 20:36:16 +0000 |
commit | bfbb5ecb447c46b2b10248ab47f980dd968cae68 (patch) | |
tree | 56f2db008cdc9b301f2cb24ff56fd0e24359dcca /ot_livesync.c | |
parent | 566e8267e15032dfd9f12320c83deee4d74d13cb (diff) |
stats fuer sync
Diffstat (limited to 'ot_livesync.c')
-rw-r--r-- | ot_livesync.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ | |||
17 | #include "trackerlogic.h" | 17 | #include "trackerlogic.h" |
18 | #include "ot_livesync.h" | 18 | #include "ot_livesync.h" |
19 | #include "ot_accesslist.h" | 19 | #include "ot_accesslist.h" |
20 | #include "ot_stats.h" | ||
20 | 21 | ||
21 | #ifdef WANT_SYNC_LIVE | 22 | #ifdef WANT_SYNC_LIVE |
22 | 23 | ||
@@ -152,6 +153,8 @@ static void * livesync_worker( void * args ) { | |||
152 | 153 | ||
153 | off += sizeof( ot_hash ) + sizeof( ot_peer ); | 154 | off += sizeof( ot_hash ) + sizeof( ot_peer ); |
154 | } | 155 | } |
156 | |||
157 | stats_issue_event(EVENT_SYNC, 0, datalen / ((ssize_t)sizeof( ot_hash ) + (ssize_t)sizeof( ot_peer ))); | ||
155 | } | 158 | } |
156 | /* Never returns. */ | 159 | /* Never returns. */ |
157 | return NULL; | 160 | return NULL; |