<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#C0C0C0">
set low latency busy poll to 50 per socket will<br>
spent more time than set low latency busy poll <br>
to 0 per socket. that mean the value of res_50 <br>
is bigger than res_0, so the value of poll_comp <br>
always less than zero and test fail.<br>
<br>
Signed-off-by: Lianwen Sun <a class="moz-txt-link-rfc2396E" href="mailto:sunlw.fnst@cn.fujitsu.com"><sunlw.fnst@cn.fujitsu.com></a><br>
---<br>
testcases/network/busy_poll/busy_poll01.sh | 2 +-<br>
testcases/network/busy_poll/busy_poll02.sh | 2 +-<br>
2 files changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/testcases/network/busy_poll/busy_poll01.sh
b/testcases/network/busy_poll/busy_poll01.sh<br>
index 3c3035600..119ae0176 100755<br>
--- a/testcases/network/busy_poll/busy_poll01.sh<br>
+++ b/testcases/network/busy_poll/busy_poll01.sh<br>
@@ -60,7 +60,7 @@ for x in 50 0; do<br>
tst_netload -H $(tst_ipaddr rhost) -d res_$x<br>
done<br>
<br>
-poll_cmp=$(( 100 - ($(cat res_50) * 100) / $(cat res_0) ))<br>
+poll_cmp=$(( 100 - ($(cat res_0) * 100) / $(cat res_50) ))<br>
<br>
if [ "$poll_cmp" -lt 1 ]; then<br>
tst_resm TFAIL "busy poll result is '$poll_cmp' %"<br>
diff --git a/testcases/network/busy_poll/busy_poll02.sh
b/testcases/network/busy_poll/busy_poll02.sh<br>
index 427857996..05b5cf8c4 100755<br>
--- a/testcases/network/busy_poll/busy_poll02.sh<br>
+++ b/testcases/network/busy_poll/busy_poll02.sh<br>
@@ -51,7 +51,7 @@ for x in 50 0; do<br>
tst_netload -H $(tst_ipaddr rhost) -d res_$x -b $x<br>
done<br>
<br>
-poll_cmp=$(( 100 - ($(cat res_50) * 100) / $(cat res_0) ))<br>
+poll_cmp=$(( 100 - ($(cat res_0) * 100) / $(cat res_50) ))<br>
<br>
if [ "$poll_cmp" -lt 1 ]; then<br>
tst_resm TFAIL "busy poll result is '$poll_cmp' %"<br>
-- <br>
2.16.2<br>
<br>
<br>
</body>
</html>