diff options
Diffstat (limited to 'tools/perf/util/hist.c')
-rw-r--r-- | tools/perf/util/hist.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index 8efbf58dc3d0..33702675073c 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c | |||
@@ -193,7 +193,10 @@ void hists__calc_col_len(struct hists *hists, struct hist_entry *h) | |||
193 | hists__new_col_len(hists, HISTC_MEM_LVL, 21 + 3); | 193 | hists__new_col_len(hists, HISTC_MEM_LVL, 21 + 3); |
194 | hists__new_col_len(hists, HISTC_LOCAL_WEIGHT, 12); | 194 | hists__new_col_len(hists, HISTC_LOCAL_WEIGHT, 12); |
195 | hists__new_col_len(hists, HISTC_GLOBAL_WEIGHT, 12); | 195 | hists__new_col_len(hists, HISTC_GLOBAL_WEIGHT, 12); |
196 | hists__new_col_len(hists, HISTC_TIME, 12); | 196 | if (symbol_conf.nanosecs) |
197 | hists__new_col_len(hists, HISTC_TIME, 16); | ||
198 | else | ||
199 | hists__new_col_len(hists, HISTC_TIME, 12); | ||
197 | 200 | ||
198 | if (h->srcline) { | 201 | if (h->srcline) { |
199 | len = MAX(strlen(h->srcline), strlen(sort_srcline.se_header)); | 202 | len = MAX(strlen(h->srcline), strlen(sort_srcline.se_header)); |