diff options
Diffstat (limited to 'tools/perf/util/newt.c')
-rw-r--r-- | tools/perf/util/newt.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/perf/util/newt.c b/tools/perf/util/newt.c index 010bacf40163..3402453812b3 100644 --- a/tools/perf/util/newt.c +++ b/tools/perf/util/newt.c | |||
@@ -680,16 +680,18 @@ static int hist_browser__populate(struct hist_browser *self, struct hists *hists | |||
680 | struct ui_progress *progress; | 680 | struct ui_progress *progress; |
681 | struct rb_node *nd; | 681 | struct rb_node *nd; |
682 | u64 curr_hist = 0; | 682 | u64 curr_hist = 0; |
683 | char seq[] = "."; | 683 | char seq[] = ".", unit; |
684 | char str[256]; | 684 | char str[256]; |
685 | unsigned long nr_events = hists->stats.nr_events[PERF_RECORD_SAMPLE]; | ||
685 | 686 | ||
686 | if (self->form) { | 687 | if (self->form) { |
687 | newtFormDestroy(self->form); | 688 | newtFormDestroy(self->form); |
688 | newtPopWindow(); | 689 | newtPopWindow(); |
689 | } | 690 | } |
690 | 691 | ||
691 | snprintf(str, sizeof(str), "Samples: %Ld ", | 692 | nr_events = convert_unit(nr_events, &unit); |
692 | hists->stats.total_period); | 693 | snprintf(str, sizeof(str), "Events: %lu%c ", |
694 | nr_events, unit); | ||
693 | newtDrawRootText(0, 0, str); | 695 | newtDrawRootText(0, 0, str); |
694 | 696 | ||
695 | newtGetScreenSize(NULL, &rows); | 697 | newtGetScreenSize(NULL, &rows); |