diff options
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 8cb58d68a006..da402e186561 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -901,7 +901,7 @@ callchain__fprintf_graph(FILE *fp, struct callchain_node *self, | |||
901 | int i; | 901 | int i; |
902 | 902 | ||
903 | if (callchain_param.mode == CHAIN_GRAPH_REL) | 903 | if (callchain_param.mode == CHAIN_GRAPH_REL) |
904 | new_total = self->cumul_hit; | 904 | new_total = self->children_hit; |
905 | else | 905 | else |
906 | new_total = total_samples; | 906 | new_total = total_samples; |
907 | 907 | ||
@@ -930,7 +930,7 @@ callchain__fprintf_graph(FILE *fp, struct callchain_node *self, | |||
930 | ret += ipchain__fprintf_graph(fp, chain, depth, | 930 | ret += ipchain__fprintf_graph(fp, chain, depth, |
931 | new_depth_mask, i++, | 931 | new_depth_mask, i++, |
932 | new_total, | 932 | new_total, |
933 | child->cumul_hit); | 933 | cumul_hits(child)); |
934 | } | 934 | } |
935 | ret += callchain__fprintf_graph(fp, child, new_total, | 935 | ret += callchain__fprintf_graph(fp, child, new_total, |
936 | depth + 1, | 936 | depth + 1, |