1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-11 15:30:07 +00:00

Embarrasing counter direction bug :)

This commit is contained in:
erdgeist 2008-01-25 17:22:55 +00:00
parent 572df73443
commit 90184649d0

View File

@ -139,7 +139,7 @@ static size_t stats_return_busy_networks( char * reply ) {
stats_get_highscore_networks( stats_network_counters_root, 0, 0, scores, networks, 16 ); stats_get_highscore_networks( stats_network_counters_root, 0, 0, scores, networks, 16 );
for( i=15; i>=0; ++i) for( i=15; i>=0; --i)
r += sprintf( r, "%08i: %d.%d.%d.0/24\n", scores[i], (networks[i]>>24)&0xff, (networks[i]>>16)&0xff, (networks[i]>>8)&0xff ); r += sprintf( r, "%08i: %d.%d.%d.0/24\n", scores[i], (networks[i]>>24)&0xff, (networks[i]>>16)&0xff, (networks[i]>>8)&0xff );
return r - reply; return r - reply;