trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject svn commit: r1068912 - /trafficserver/traffic/trunk/proxy/logstats.cc
Date Wed, 09 Feb 2011 14:41:34 GMT
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)



Mime
View raw message