From 90184649d021120c1b181bc6a6fe602802a17ef4 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Fri, 25 Jan 2008 17:22:55 +0000 Subject: [PATCH] Embarrasing counter direction bug :) --- ot_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ot_stats.c b/ot_stats.c index 3742015..1177616 100644 --- a/ot_stats.c +++ b/ot_stats.c @@ -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 ); - 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 ); return r - reply;