From 07b693d3deca1bb25b7e181521ca8b34707804a7 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 17 Apr 2012 10:07:06 -0700 Subject: Switch the order of total and avg columns in -d stats output. --- src/metrics.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/metrics.cc b/src/metrics.cc index b2433aa..fb44868 100644 --- a/src/metrics.cc +++ b/src/metrics.cc @@ -102,14 +102,14 @@ void Metrics::Report() { width = max((int)(*i)->name.size(), width); } - printf("%-*s\t%-6s\t%9s\t%s\n", width, - "metric", "count", "total (ms)" , "avg (us)"); + printf("%-*s\t%-6s\t%-9s\t%s\n", width, + "metric", "count", "avg (us)", "total (ms)"); for (vector::iterator i = metrics_.begin(); i != metrics_.end(); ++i) { Metric* metric = *i; double total = metric->sum / (double)1000; double avg = metric->sum / (double)metric->count; printf("%-*s\t%-6d\t%-8.1f\t%.1f\n", width, metric->name.c_str(), - metric->count, total, avg); + metric->count, avg, total); } } -- cgit v0.12