[prev in list] [next in list] [prev in thread] [next in thread]
List: helix-client-cvs
Subject: [Client-cvs] simplecore hxpktq.cpp, 1.1.1.1.4.3,
From: ching_li () helixcommunity ! org
Date: 2011-08-24 3:19:29
Message-ID: 201108240319.p7O3Jgja010496 () mailer ! progressive-comp ! com
[Download RAW message or body]
Update of /cvsroot/client/simplecore
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv1252
Modified Files:
Tag: hxclient_3_6_1_atlas
hxpktq.cpp hxpktq.h
Log Message:
the old logic is sensitive to the invoking steps
Index: hxpktq.h
===================================================================
RCS file: /cvsroot/client/simplecore/hxpktq.h,v
retrieving revision 1.1.1.1.4.3
retrieving revision 1.1.1.1.4.4
diff -u -d -r1.1.1.1.4.3 -r1.1.1.1.4.4
--- hxpktq.h 12 Aug 2011 02:39:33 -0000 1.1.1.1.4.3
+++ hxpktq.h 24 Aug 2011 03:19:26 -0000 1.1.1.1.4.4
@@ -119,17 +119,19 @@
virtual UINT32 GetMinQueueSizeMS() const {return m_ulMsLow;}
virtual void SetMinQueueSizeMS(UINT32 nValue)
{
- if (nValue <= m_ulMsHigh)
+ m_ulMsLow = nValue;
+ if (m_ulMsLow > m_ulMsHigh)
{
- m_ulMsLow = nValue;
+ m_ulMsHigh = m_ulMsLow;
}
}
virtual UINT32 GetMaxQueueSizeMS() const {return m_ulMsHigh;}
virtual void SetMaxQueueSizeMS(UINT32 nValue)
{
- if (nValue >= m_ulMsLow)
+ m_ulMsHigh = nValue;
+ if (m_ulMsHigh < m_ulMsLow)
{
- m_ulMsHigh = nValue;
+ m_ulMsLow = m_ulMsHigh;
}
}
virtual UINT32 BufferingPercent(void);
Index: hxpktq.cpp
===================================================================
RCS file: /cvsroot/client/simplecore/hxpktq.cpp,v
retrieving revision 1.1.1.1.4.3
retrieving revision 1.1.1.1.4.4
diff -u -d -r1.1.1.1.4.3 -r1.1.1.1.4.4
--- hxpktq.cpp 12 Aug 2011 02:39:33 -0000 1.1.1.1.4.3
+++ hxpktq.cpp 24 Aug 2011 03:19:26 -0000 1.1.1.1.4.4
@@ -305,13 +305,9 @@
UINT32 HXLimitedPacketQueue::BufferingPercent()
{
UINT32 ulBufferingPercent = 100;
- if (IsLow())
+ if (IsLow() && m_ulMsLow)
{
- UINT32 ulSiz = GetSize();
- if (m_ulMsLow)
- {
- ulBufferingPercent = GetSize() * 100 / m_ulMsLow;
- }
+ ulBufferingPercent = GetSize() * 100 / m_ulMsLow;
}
return ulBufferingPercent;
}
_______________________________________________
Client-cvs mailing list
Client-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/client-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic