Commit c79dffd5 authored by Rob Pike's avatar Rob Pike

bug: updated wrong counter when combining values

R=rsc
OCL=15751
CL=15751
parent 5ff12f87
......@@ -252,7 +252,7 @@ dumphistogram()
x = pcs[i];
func(b2, sizeof(b2), x->pc);
if(j > 0 && strcmp(b1, b2) == 0) {
pcs[i-1]->count += x->count;
pcs[j-1]->count += x->count;
} else {
strcpy(b1, b2);
pcs[j++] = x;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment