Home
last modified time | relevance | path

Searched refs:top100c (Results 1 – 1 of 1) sorted by relevance

/dports/net/opentracker/opentracker-0.2017.08.13/
H A Dot_stats.c301 ot_record top100s[100], top100c[100]; in stats_top_txt() local
309 byte_zero( top100c, sizeof( top100c ) ); in stats_top_txt()
315 … int idx = amount - 1; while( (idx >= 0) && ( peer_list->peer_count > top100c[idx].val ) ) --idx; in stats_top_txt()
317 memmove( top100c + idx + 1, top100c + idx, ( amount - 1 - idx ) * sizeof( ot_record ) ); in stats_top_txt()
318 top100c[idx].val = peer_list->peer_count; in stats_top_txt()
319 top100c[idx].torrent = (ot_torrent*)(torrents_list->data) + j; in stats_top_txt()
335 if( top100c[idx].torrent ) in stats_top_txt()
336 … r += sprintf( r, "\t%zd\t%s\n", top100c[idx].val, to_hex( hex_out, top100c[idx].torrent->hash) ); in stats_top_txt()