This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new dd9da76 TS-4429: Fixes missing curly brackets with new option
dd9da76 is described below
commit dd9da766ac8b44e496b6623ecf0257486c91674f
Author: Leif Hedstrom <[email protected]>
AuthorDate: Wed Nov 30 09:08:29 2016 -0700
TS-4429: Fixes missing curly brackets with new option
---
proxy/logstats.cc | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/proxy/logstats.cc b/proxy/logstats.cc
index 28483bc..179b1fa 100644
--- a/proxy/logstats.cc
+++ b/proxy/logstats.cc
@@ -1860,12 +1860,12 @@ format_elapsed_line(const char *desc, const
ElapsedStats &stat, bool json, bool
std::cout << " " << '"' << desc << "\" : "
<< "{ ";
std::cout << "\"min\": \"" << stat.min << "\", ";
- std::cout << "\"max\": \"" << stat.max << "\", ";
+ std::cout << "\"max\": \"" << stat.max << "\"";
if (!concise) {
- std::cout << "\"avg\": \"" << std::setiosflags(ios::fixed) <<
std::setprecision(2) << stat.avg << "\", ";
- std::cout << "\"dev\": \"" << std::setiosflags(ios::fixed) <<
std::setprecision(2) << stat.stddev << "\" },";
+ std::cout << ", \"avg\": \"" << std::setiosflags(ios::fixed) <<
std::setprecision(2) << stat.avg << "\", ";
+ std::cout << "\"dev\": \"" << std::setiosflags(ios::fixed) <<
std::setprecision(2) << stat.stddev << "\"";
}
- std::cout << std::endl;
+ std::cout << " }," << std::endl;
} else {
std::cout << std::left << std::setw(24) << desc;
std::cout << std::right << std::setw(7);
@@ -1903,13 +1903,13 @@ format_line(const char *desc, const StatsCounter &stat,
const StatsCounter &tota
std::cout << "\"req_pct\": \"" << std::setiosflags(ios::fixed) <<
std::setprecision(2)
<< (double)stat.count / total.count * 100 << "\", ";
}
- std::cout << "\"bytes\": \"" << stat.bytes << "\", ";
+ std::cout << "\"bytes\": \"" << stat.bytes << "\"";
if (!concise) {
- std::cout << "\"bytes_pct\": \"" << std::setiosflags(ios::fixed) <<
std::setprecision(2)
- << (double)stat.bytes / total.bytes * 100 << "\" },";
+ std::cout << ", \"bytes_pct\": \"" << std::setiosflags(ios::fixed) <<
std::setprecision(2)
+ << (double)stat.bytes / total.bytes * 100 << "\"";
}
- std::cout << std::endl;
+ std::cout << " }," << std::endl;
} else {
std::cout << std::left << std::setw(29) << desc;
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].