[netperf-dev] netperf2 commit notice r449 - trunk/src
raj at netperf.org
raj at netperf.org
Tue Jul 26 17:15:35 PDT 2011
Author: raj
Date: 2011-07-26 17:15:34 -0700 (Tue, 26 Jul 2011)
New Revision: 449
Modified:
trunk/src/netlib.c
trunk/src/netserver.c
Log:
a kludge to get past a picky warning cum error in the microsoft wdk compiler
Modified: trunk/src/netlib.c
===================================================================
--- trunk/src/netlib.c 2011-07-26 22:34:27 UTC (rev 448)
+++ trunk/src/netlib.c 2011-07-27 00:15:34 UTC (rev 449)
@@ -3979,7 +3979,8 @@
/* get percentile from histogram */
int
HIST_get_percentile(HIST h, const double percentile){
- int num = (int) h->total * percentile;
+ double win_kludge = percentile * (double) h->total;
+ int num = (int) win_kludge;
int last = 0;
int current = 0;
int result;
Modified: trunk/src/netserver.c
===================================================================
--- trunk/src/netserver.c 2011-07-26 22:34:27 UTC (rev 448)
+++ trunk/src/netserver.c 2011-07-27 00:15:34 UTC (rev 449)
@@ -122,7 +122,7 @@
#include <time.h>
#include <winsock2.h>
-#if HAVE_WS2TCPIP.h
+#if HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
More information about the netperf-dev
mailing list