From c745fc1209a8d042b67e2866a56db8ecbd293370 Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Fri, 26 Feb 2016 13:15:43 -0500 Subject: [PATCH] Add spaces where columns are too close Signed-off-by: Julien Desfossez --- lttnganalyses/cli/cputop.py | 2 +- lttnganalyses/cli/sched.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lttnganalyses/cli/cputop.py b/lttnganalyses/cli/cputop.py index a272b6e..0a21c6e 100644 --- a/lttnganalyses/cli/cputop.py +++ b/lttnganalyses/cli/cputop.py @@ -188,7 +188,7 @@ class Cputop(Command): return result_table def _print_per_tid_usage(self, result_table): - row_format = '{:<25} {:>10} {}' + row_format = ' {:<25} {:>10} {}' label_header = row_format.format('Process', 'Migrations', 'Priorities') def format_label(row): diff --git a/lttnganalyses/cli/sched.py b/lttnganalyses/cli/sched.py index 45389e6..24ce1f6 100644 --- a/lttnganalyses/cli/sched.py +++ b/lttnganalyses/cli/sched.py @@ -705,8 +705,8 @@ class SchedAnalysisCommand(Command): return common.ns_to_hour_nsec(ts, self._args.multi_day, self._args.gmt) def _print_sched_events(self, result_table): - fmt = '[{:<18}, {:<18}] {:>15} {:>10} {:>3} {:<25} {:<25}' - title_fmt = '{:<20} {:<19} {:>15} {:>10} {:>3} {:<25} {:<25}' + fmt = '[{:<18}, {:<18}] {:>15} {:>10} {:>3} {:<25} {:<25}' + title_fmt = '{:<20} {:<19} {:>15} {:>10} {:>3} {:<25} {:<25}' print() print(result_table.title) print(title_fmt.format('Wakeup', 'Switch', 'Latency (us)', 'Priority', @@ -758,7 +758,7 @@ class SchedAnalysisCommand(Command): print(row_str) def _print_per_tid_stats(self, stats_table): - row_format = '{:<25} {:>8} {:>12} {:>12} {:>12} {:>12} {}' + row_format = '{:<25} {:>8} {:>12} {:>12} {:>12} {:>12} {}' header = row_format.format( 'Process', 'Count', 'Min', 'Avg', 'Max', 'Stdev', 'Priorities' ) -- 2.34.1