apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r668879 - /apr/apr/branches/1.3.x/test/sockperf.c
Date Tue, 17 Jun 2008 23:53:17 GMT
Author: bojan
Date: Tue Jun 17 16:53:16 2008
New Revision: 668879

URL: http://svn.apache.org/viewvc?rev=668879&view=rev
Log:
Backport r668878 from the trunk.
Use correct format for apr_time_t.

Modified:
    apr/apr/branches/1.3.x/test/sockperf.c

Modified: apr/apr/branches/1.3.x/test/sockperf.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.3.x/test/sockperf.c?rev=668879&r1=668878&r2=668879&view=diff
==============================================================================
--- apr/apr/branches/1.3.x/test/sockperf.c (original)
+++ apr/apr/branches/1.3.x/test/sockperf.c Tue Jun 17 16:53:16 2008
@@ -231,11 +231,12 @@
         printf("%10d byte block:\n", results[i].size);
         printf("\t%2d iterations : ", results[i].iters);
         for (j = 0; j < results[i].iters; j++) {
-            printf("%6Ld ", results[i].msecs[j]);
+            printf("%6" APR_TIME_T_FMT, results[i].msecs[j]);
             totTime += results[i].msecs[j];
         }
         printf("<\n");
-        printf("\t  Average: %6Ld\n", totTime / results[i].iters);
+        printf("\t  Average: %6" APR_TIME_T_FMT "\n",
+               totTime / results[i].iters);
     }
 
     return 0;



Mime
View raw message