chiark / gitweb /
routesearch: debugging newbest counters split by granu too
[ypp-sc-tools.db-test.git] / yarrg / rssearch.c
index 5ad6136180fa528ab220c06b8c74ad78771954af..74a2f4504feb0840444a3da69cbd166333010aa5 100644 (file)
@@ -149,7 +149,7 @@ static double process_route(int nports, int totaldist,
        debugf("      ");
       } else {
        int pos;
-       ctr_newbests_granu[ap]++;
+       ctr_newbests_granu[granui*AP+ap]++;
        bucket->value[ap]= value[ap];
        memcpy(bucket->ports[ap], ports, sizeof(*ports) * nports);
        if (nports < MAX_ROUTELEN-1) bucket->ports[ap][nports]= -1;