| 373 | |
| 374 | |
| 375 | uint64 CUpDownClient::GetWaitStartTime() const |
| 376 | { |
| 377 | uint64 dwResult = 0; |
| 378 | |
| 379 | if ( credits ) { |
| 380 | dwResult = credits->GetSecureWaitStartTime(GetIP()); |
| 381 | |
| 382 | if (dwResult > m_dwUploadTime && IsDownloading()) { |
| 383 | // This happens only if two clients with invalid securehash are in the queue - if at all |
| 384 | dwResult = m_dwUploadTime - 1; |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | return dwResult; |
| 389 | } |
| 390 | |
| 391 | |
| 392 | void CUpDownClient::SetWaitStartTime() |
no test coverage detected