From 9273c94d88794368a8dd0c9742d00e7bf7d1e729 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 31 Jan 2023 10:48:06 -0500 Subject: [PATCH] Replace `msec` with `ms` --- pdns/dnsbulktest.cc | 8 ++++---- pdns/dnsdist-lua-actions.cc | 4 ++-- pdns/dnsdist-lua-inspection.cc | 4 ++-- pdns/dnsreplay.cc | 4 ++-- pdns/dnsscope.cc | 4 ++-- pdns/dnstcpbench.cc | 2 +- pdns/recursordist/syncres.cc | 6 +++--- pdns/tools/rrd/makegraphs | 4 ++-- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/pdns/dnsbulktest.cc b/pdns/dnsbulktest.cc index 1a4d20f78ee3..df221c06f0f3 100644 --- a/pdns/dnsbulktest.cc +++ b/pdns/dnsbulktest.cc @@ -188,9 +188,9 @@ struct SendReceive { (*d_acc)(usec/1000.0); // if(usec > 1000000) - // cerr<<"Slow: "<second*1.0); } boost::format fmt("%7.2f\t%s\n"); - g_outputBuffer += (fmt % "msec" % "").str(); + g_outputBuffer += (fmt % "ms" % "").str(); for(auto iter = histo.cbegin(); iter != histo.cend(); ++iter) { int stars = (70.0 * iter->second/highest); diff --git a/pdns/dnsreplay.cc b/pdns/dnsreplay.cc index 8d3a529b8e25..8db158c642dd 100644 --- a/pdns/dnsreplay.cc +++ b/pdns/dnsreplay.cc @@ -306,9 +306,9 @@ static void emitFlightTimes() cout.precision(2); for(unsigned int i =0 ; i < sizeof(limits)/sizeof(limits[0]); ++i) { if(limits[i]!=flightTimes.size()) - cout<<"Within "<first < 1024) cout<< perc <<"% of questions answered within " << j->first << " usec ("; else - cout<< perc <<"% of questions answered within " << j->first/1000.0 << " msec ("; + cout<< perc <<"% of questions answered within " << j->first/1000.0 << " ms ("; cout<first < 1024) cout<< perc <<"% of questions answered within " << j->first << " usec ("; else - cout<< perc <<"% of questions answered within " << j->first/1000.0 << " msec ("; + cout<< perc <<"% of questions answered within " << j->first/1000.0 << " ms ("; cout<(EDNSExtendedError::code::NoReachableAuthority), "Timeout waiting for answer(s)"}; } - throw ImmediateServFailException("Too much time waiting for " + qname.toLogString() + "|" + qtype.toString() + ", timeouts: " + std::to_string(d_timeouts) + ", throttles: " + std::to_string(d_throttledqueries) + ", queries: " + std::to_string(d_outqueries) + ", " + std::to_string(d_totUsec / 1000) + "msec"); + throw ImmediateServFailException("Too much time waiting for " + qname.toLogString() + "|" + qtype.toString() + ", timeouts: " + std::to_string(d_timeouts) + ", throttles: " + std::to_string(d_throttledqueries) + ", queries: " + std::to_string(d_outqueries) + ", " + std::to_string(d_totUsec / 1000) + " ms"); } if (doTCP) { @@ -5172,7 +5172,7 @@ bool SyncRes::doResolveAtThisIP(const std::string& prefix, const DNSName& qname, if (resolveret == LWResult::Result::Timeout) { /* Time out */ - LOG(prefix << qname << ": Timeout resolving after " << lwr.d_usec / 1000.0 << "msec " << (doTCP ? "over TCP" : "") << endl); + LOG(prefix << qname << ": Timeout resolving after " << lwr.d_usec / 1000.0 << " ms " << (doTCP ? "over TCP" : "") << endl); d_timeouts++; t_Counters.at(rec::Counter::outgoingtimeouts)++; @@ -5661,7 +5661,7 @@ int SyncRes::doResolveAt(NsSet& nameservers, DNSName auth, bool flawedNSSet, con if(remoteIP->sin4.sin_family==AF_INET6) lwr.d_usec/=3; */ - // cout<<"msec: "<find_or_enter(tns->first.empty() ? DNSName(remoteIP->toStringWithPort()) : tns->first, d_now).submit(*remoteIP, lwr.d_usec, d_now); diff --git a/pdns/tools/rrd/makegraphs b/pdns/tools/rrd/makegraphs index a0f66998c2e1..62dfbf6787a3 100755 --- a/pdns/tools/rrd/makegraphs +++ b/pdns/tools/rrd/makegraphs @@ -78,8 +78,8 @@ function makeGraphs() LINE1:alloutqueries#00ff00:"outqueries/s" rrdtool graph $GRAPHOPTS --start -$1 $WWWPREFIX/qa-latency-$2.png -w $WSIZE -h $HSIZE -l 0 \ - -t "Questions/answer latency in milliseconds" \ - -v "msec" \ + -t "Questions/answer latency in ms" \ + -v "ms" \ DEF:qalatency=pdns_recursor.rrd:qa-latency:AVERAGE \ CDEF:mqalatency=qalatency,1000,/ \ LINE1:mqalatency#ff0000:"questions/s"