diff options
author | erdgeist <> | 2008-01-25 17:22:55 +0000 |
---|---|---|
committer | erdgeist <> | 2008-01-25 17:22:55 +0000 |
commit | 90184649d021120c1b181bc6a6fe602802a17ef4 (patch) | |
tree | 8c59819d00a78756b896c5ef2cbb8715b74cff18 /ot_stats.c | |
parent | 572df7344331586f261273bdabc71bc54c49f88a (diff) |
Embarrasing counter direction bug :)
Diffstat (limited to 'ot_stats.c')
-rw-r--r-- | ot_stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -139,7 +139,7 @@ static size_t stats_return_busy_networks( char * reply ) { | |||
139 | 139 | ||
140 | stats_get_highscore_networks( stats_network_counters_root, 0, 0, scores, networks, 16 ); | 140 | stats_get_highscore_networks( stats_network_counters_root, 0, 0, scores, networks, 16 ); |
141 | 141 | ||
142 | for( i=15; i>=0; ++i) | 142 | for( i=15; i>=0; --i) |
143 | r += sprintf( r, "%08i: %d.%d.%d.0/24\n", scores[i], (networks[i]>>24)&0xff, (networks[i]>>16)&0xff, (networks[i]>>8)&0xff ); | 143 | r += sprintf( r, "%08i: %d.%d.%d.0/24\n", scores[i], (networks[i]>>24)&0xff, (networks[i]>>16)&0xff, (networks[i]>>8)&0xff ); |
144 | 144 | ||
145 | return r - reply; | 145 | return r - reply; |