mirror of https://github.com/golang/go.git
bug: updated wrong counter when combining values
R=rsc OCL=15751 CL=15751
This commit is contained in:
parent
5ff12f871f
commit
c79dffd5ef
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue