MCPcopy Create free account
hub / github.com/amule-project/amule / GetUserFileStatus

Method GetUserFileStatus

src/ServerList.cpp:429–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427
428
429void CServerList::GetUserFileStatus(uint32 &user, uint32 &file)
430{
431 user = 0;
432 file = 0;
433 for (CInternalList::const_iterator it = m_servers.begin(); it != m_servers.end(); ++it) {
434 const CServer* const curr = *it;
435 if( !curr->GetFailedCount() ) {
436 user += curr->GetUsers();
437 file += curr->GetFiles();
438 }
439 }
440}
441
442
443CServerList::~CServerList()

Callers 2

ShowUserCountMethod · 0.45

Calls 5

GetFailedCountMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
GetUsersMethod · 0.45
GetFilesMethod · 0.45

Tested by

no test coverage detected