summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-27 09:46:01 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-27 09:46:01 +0000
commit0891b0a2cb17dba0b5337c9a66825f1c27e87828 (patch)
treeb69ad18f25499fd53539988bf02fffdff4ae6d9b /MdeModulePkg/Universal
parentabf1c3e47f22c8293ce91ff1c4e5bce4cfbcdef4 (diff)
downloadedk2-0891b0a2cb17dba0b5337c9a66825f1c27e87828.zip
edk2-0891b0a2cb17dba0b5337c9a66825f1c27e87828.tar.gz
edk2-0891b0a2cb17dba0b5337c9a66825f1c27e87828.tar.bz2
Fixed one bug when calculating timeout value in timeout function for UDP protocol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6763 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r--MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c b/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c
index 18ba7f4..4c7a6fd 100644
--- a/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c
+++ b/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c
@@ -451,13 +451,13 @@ Udp4CheckTimeout (
//
Wrap = NET_LIST_USER_STRUCT (WrapEntry, UDP4_RXDATA_WRAP, Link);
- if (Wrap->TimeoutTick <= UDP4_TIMEOUT_INTERVAL / 1000) {
+ if (Wrap->TimeoutTick <= UDP4_TIMEOUT_INTERVAL / 10) {
//
// Remove this RxData if it timeouts.
//
Udp4RecycleRxDataWrap (NULL, (VOID *) Wrap);
} else {
- Wrap->TimeoutTick -= UDP4_TIMEOUT_INTERVAL / 1000;
+ Wrap->TimeoutTick -= UDP4_TIMEOUT_INTERVAL / 10;
}
}
}