Skip to content

Commit 23f4388

Browse files
committed
fixed:move pointer error
1 parent 0dfae93 commit 23f4388

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Diff for: XEngine_Docment/.gitignore

Whitespace-only changes.

Diff for: XEngine_Source/StorageModule_Session/Session_Stroage/Session_DLStroage.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ BOOL CSession_DLStroage::Session_DLStroage_GetCount(int nPool, list<string>* pSt
425425
//速率恢复测算
426426
if ((stl_ListIterator->st_DynamicRate.nAutoNumber <= m_nTryAuto) && ((nTimeNow - stl_ListIterator->st_DynamicRate.nTimeError) > (stl_ListIterator->st_DynamicRate.nErrorCount * stl_ListIterator->st_DynamicRate.nAutoNumber)))
427427
{
428-
//printf("2-m_bAutoSpeed:%d,ullTimeNow:%lu - nTimeError:%lu nErrorCount:%d\n", m_nTryAuto, nTimeNow, stl_ListIterator->st_DynamicRate.nTimeError, stl_ListIterator->st_DynamicRate.nErrorCount * 2);
428+
//printf("nAutoNumber:%d <= m_nTryAuto:%d,nTimeNow:%lu - nTimeError:%lu nErrorCount:%d\n", stl_ListIterator->st_DynamicRate.nAutoNumber, m_nTryAuto, nTimeNow, stl_ListIterator->st_DynamicRate.nTimeError, stl_ListIterator->st_DynamicRate.nErrorCount * stl_ListIterator->st_DynamicRate.nAutoNumber);
429429
stl_ListIterator->st_DynamicRate.nAutoNumber++;
430430
stl_ListIterator->st_DynamicRate.nErrorCount--;
431431
stl_ListIterator->st_DynamicRate.ullTimeWait -= XENGINE_STOREAGE_SESSION_DOWNLOAD_SENDTIME;
@@ -513,7 +513,7 @@ BOOL CSession_DLStroage::Session_DLStorage_SetSeek(LPCTSTR lpszClientAddr, int n
513513
st_Locker.unlock_shared();
514514
return FALSE;
515515
}
516-
stl_ListIterator->ullRWLen -= nSeek;
516+
stl_ListIterator->ullRWLen += nSeek;
517517
break;
518518
}
519519
}

Diff for: XEngine_Source/XEngine_StorageApp/XEngine_StorageApp.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ static int ServiceApp_Deamon(int wait)
105105

106106
int main(int argc, char** argv)
107107
{
108+
#if (XENGINE_VERSION_KERNEL < 7) && (XENGINE_VERSION_MAIN < 19)
109+
printf("XEngine版本过低,无法继续\n");
110+
#endif
108111
#ifdef _WINDOWS
109112
WSADATA st_WSAData;
110113
WSAStartup(MAKEWORD(2, 2), &st_WSAData);

0 commit comments

Comments
 (0)