Skip to content

Commit

Permalink
stopwatch: Remove tabs from output.
Browse files Browse the repository at this point in the history
OVS uses spaces for indentation in source code and it makes sense for it to
also use spaces for indentation in output.  Spaces also consume less
horizontal space in output, which often makes it easier to read.  This
commit transitions one part of output from tabs to spaces and updates
appropriate parts of the tests to match.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
  • Loading branch information
blp committed Jun 11, 2018
1 parent aa14105 commit 957ee50
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/stopwatch.c
Expand Up @@ -280,14 +280,14 @@ stopwatch_print(struct stopwatch *sw, const char *name,
ds_put_format(s, "Statistics for '%s'\n", name);

const char *units = unit_name[sw->units];
ds_put_format(s, "\t Total samples: %llu\n", sw->n_samples);
ds_put_format(s, "\t Maximum: %llu %s\n", sw->max, units);
ds_put_format(s, "\t Minimum: %llu %s\n", sw->min, units);
ds_put_format(s, "\t 95th percentile: %f %s\n",
ds_put_format(s, " Total samples: %llu\n", sw->n_samples);
ds_put_format(s, " Maximum: %llu %s\n", sw->max, units);
ds_put_format(s, " Minimum: %llu %s\n", sw->min, units);
ds_put_format(s, " 95th percentile: %f %s\n",
sw->pctl.percentile, units);
ds_put_format(s, "\t Short term average: %f %s\n",
ds_put_format(s, " Short term average: %f %s\n",
sw->short_term.average, units);
ds_put_format(s, "\t Long term average: %f %s\n",
ds_put_format(s, " Long term average: %f %s\n",
sw->long_term.average, units);
}

Expand Down

0 comments on commit 957ee50

Please sign in to comment.