From: mtk Date: Thu, 3 Nov 2011 18:34:56 +0000 (+0000) Subject: Statistics: use more human readable formatting for console output X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=163314c6808b654e16ff7bf881e25fb21563d167;p=senf.git Statistics: use more human readable formatting for console output git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1822 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/senf/Utils/Statistics.cc b/senf/Utils/Statistics.cc index 98b896a..43cc39f 100644 --- a/senf/Utils/Statistics.cc +++ b/senf/Utils/Statistics.cc @@ -109,16 +109,16 @@ prefix_ void senf::StatisticsBase::consoleList(unsigned level, std::ostream & os os << boost::format("%s%-5d%|15t| %12.5g %19.5g %12.5g\n") % std::string(2*level,' ') % rank() - % fmt::eng(min()).setw() % fmt::eng(avg(),dev()).setw() % fmt::eng(max()).setw(); + % fmt::eng(min()).setw().showbase() % fmt::eng(avg(),dev()).setw().showbase() % fmt::eng(max()).setw().showbase(); { OutputMap::const_iterator i (outputs_.begin()); OutputMap::const_iterator i_end (outputs_.end()); for (; i != i_end; ++i) os << boost::format(" %3d %12.5g %19.5g %12.5g\n") % i->second.n - % fmt::eng(i->second.min).setw() - % fmt::eng(i->second.avg, i->second.dev).setw() - % fmt::eng(i->second.max).setw(); + % fmt::eng(i->second.min).setw().showbase() + % fmt::eng(i->second.avg, i->second.dev).setw().showbase() + % fmt::eng(i->second.max).setw().showbase(); } { Children::const_iterator i (children_.begin());