You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2011/02/09 15:41:34 UTC
svn commit: r1068912 - /trafficserver/traffic/trunk/proxy/logstats.cc
Author: zwoop
Date: Wed Feb 9 14:41:34 2011
New Revision: 1068912
URL: http://svn.apache.org/viewvc?rev=1068912&view=rev
Log:
TS-668 Fix solaris build (thanks john).
Modified:
trafficserver/traffic/trunk/proxy/logstats.cc
Modified: trafficserver/traffic/trunk/proxy/logstats.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/logstats.cc?rev=1068912&r1=1068911&r2=1068912&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/logstats.cc (original)
+++ trafficserver/traffic/trunk/proxy/logstats.cc Wed Feb 9 14:41:34 2011
@@ -318,10 +318,7 @@ struct OriginStats
struct UrlStats
{
- bool operator < (const UrlStats& rhs)
- {
- return req.count > rhs.req.count;
- }
+ bool operator < (const UrlStats& rhs) const { return req.count > rhs.req.count; } // Reverse order
const char *url;
StatsCounter req;
@@ -387,9 +384,7 @@ public:
if (_show_urls > 0 && _show_urls < show)
show = _show_urls;
-#if !defined(__SUNPRO_CC)
_stack.sort();
-#endif
for (LruStack::iterator u=_stack.begin(); NULL != u->url && --show >= 0; ++u)
_dump_url(u, as_object);
if (as_object)