Browse Source

First vector has size 1, not 0 in debug vector

master
Dirk Engling 13 years ago
parent
commit
022f3e7455
  1. 8
      ot_stats.c

8
ot_stats.c

@ -316,9 +316,9 @@ static ssize_t stats_vector_usage( char * reply ) {
return 0;
}
if( !exactmatch ) {
vec_member[0] = peer_list->peers[j].size;
vec_member[1] = peer_list->peers[j].space;
vec_member[2] = 0;
vec_member[0] = peer_list->peers[j].size;
vec_member[1] = peer_list->peers[j].space;
vec_member[2] = 1;
} else
++vec_member[2];
}
@ -636,4 +636,4 @@ void stats_deinit( ) {
pthread_cancel( thread_id );
}
const char *g_version_stats_c = "$Source: /home/cvsroot/opentracker/ot_stats.c,v $: $Revision: 1.25 $\n";
const char *g_version_stats_c = "$Source: /home/cvsroot/opentracker/ot_stats.c,v $: $Revision: 1.26 $\n";

Loading…
Cancel
Save