Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234409
b: refs/heads/master
c: e3087b8
h: refs/heads/master
i:
  234407: d08d54b
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Feb 8, 2011
1 parent 866033b commit f7f4062
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 124bb83cd7de4d851af7595650233fb9e9279d5d
refs/heads/master: e3087b80aa0bceda9863f33307460f3ba79f2b15
4 changes: 2 additions & 2 deletions trunk/tools/perf/util/annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static int objdump_line__print(struct objdump_line *oline,
if (percent < min_pcnt)
return -1;

if (printed >= max_lines)
if (max_lines && printed >= max_lines)
return 1;

color = get_percent_color(percent);
Expand All @@ -154,7 +154,7 @@ static int objdump_line__print(struct objdump_line *oline,
color_fprintf(stdout, color, " %7.2f", percent);
printf(" : ");
color_fprintf(stdout, PERF_COLOR_BLUE, "%s\n", oline->line);
} else if (printed >= max_lines)
} else if (max_lines && printed >= max_lines)
return 1;
else {
if (!*oline->line)
Expand Down

0 comments on commit f7f4062

Please sign in to comment.