diff options
author | erdgeist <> | 2007-02-01 15:57:29 +0000 |
---|---|---|
committer | erdgeist <> | 2007-02-01 15:57:29 +0000 |
commit | 9882d74b7e0c6b9ebb87cb27b1e53ab7898c2fd2 (patch) | |
tree | 1214f1e311b3feed97ca770396ba8d235610b448 /trackerlogic.c | |
parent | e7f6908fb235aaad27455b4316c5c105ac3af344 (diff) |
Forgot to take into account, that there are OT_POOL_COUNT debuggable pools in one torrent. Fixed.
Diffstat (limited to 'trackerlogic.c')
-rw-r--r-- | trackerlogic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index 25cba05..5ff448f 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
@@ -339,7 +339,7 @@ size_t return_memstat_for_tracker( char **reply ) { | |||
339 | torrent_count += torrents_list->size; | 339 | torrent_count += torrents_list->size; |
340 | } | 340 | } |
341 | 341 | ||
342 | if( !( r = *reply = malloc( 256*32 + (43+3+30)*torrent_count ) ) ) return 0; | 342 | if( !( r = *reply = malloc( 256*32 + (43+OT_POOLS_COUNT*32)*torrent_count ) ) ) return 0; |
343 | 343 | ||
344 | for( i=0; i<256; ++i ) | 344 | for( i=0; i<256; ++i ) |
345 | r += sprintf( r, "%02X: %08X %08X\n", i, (ot_dword)all_torrents[i].size, (ot_dword)all_torrents[i].space ); | 345 | r += sprintf( r, "%02X: %08X %08X\n", i, (ot_dword)all_torrents[i].size, (ot_dword)all_torrents[i].space ); |