trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject svn commit: r951057 - /trafficserver/traffic/trunk/proxy/logstats.cc
Date Thu, 03 Jun 2010 16:27:22 GMT
Author: zwoop
Date: Thu Jun  3 16:27:22 2010
New Revision: 951057

URL: http://svn.apache.org/viewvc?rev=951057&view=rev
Log:
TS-385: Fix for 64-bit conversion.

Tested: FC8 and FC13-64-bit

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=951057&r1=951056&r2=951057&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/logstats.cc (original)
+++ trafficserver/traffic/trunk/proxy/logstats.cc Thu Jun  3 16:27:22 2010
@@ -698,7 +698,7 @@ parse_log_buff(LogBufferHeader * buf_hea
       switch (state) {
       case P_STATE_ELAPSED:
         state = P_STATE_IP;
-        elapsed = ntohl(*((int64 *) (read_from)));
+        elapsed = *((int64 *) (read_from));
         read_from += INK_MIN_ALIGN;
         break;
 
@@ -713,7 +713,7 @@ parse_log_buff(LogBufferHeader * buf_hea
 
       case P_STATE_RESULT:
         state = P_STATE_CODE;
-        result = ntohl(*((int64 *) (read_from)));
+        result = *((int64 *) (read_from));
         read_from += INK_MIN_ALIGN;
         if ((result<32) || (result> 255)) {
           flag = 1;
@@ -723,7 +723,7 @@ parse_log_buff(LogBufferHeader * buf_hea
 
       case P_STATE_CODE:
         state = P_STATE_SIZE;
-        http_code = ntohl(*((int64 *) (read_from)));
+        http_code = *((int64 *) (read_from));
         read_from += INK_MIN_ALIGN;
         if ((http_code<0) || (http_code> 999)) {
           flag = 1;
@@ -736,7 +736,7 @@ parse_log_buff(LogBufferHeader * buf_hea
         // Warning: This is not 64-bit safe, when converting the log format,
         // this needs to be fixed as well.
         state = P_STATE_METHOD;
-        size = ntohl(*((int64 *) (read_from)));
+        size = *((int64 *) (read_from));
         read_from += INK_MIN_ALIGN;
         //printf("Size == %d\n", size)
         break;
@@ -868,7 +868,7 @@ parse_log_buff(LogBufferHeader * buf_hea
 
       case P_STATE_HIERARCHY:
         state = P_STATE_PEER;
-        hier = ntohl(*((int64 *) (read_from)));
+        hier = *((int64 *) (read_from));
         switch (hier) {
         case SQUID_HIER_NONE:
           update_counter(totals.hierarchies.none, size);



Mime
View raw message