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

Method AddUploadToSoft

src/Statistics.cpp:954–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952}
953
954void CStatistics::AddUploadToSoft(uint8 SoftType, uint32 bytes)
955{
956 uint32 id = GetSoftID(SoftType);
957
958 if (s_sessionUpload->HasChildWithId(id)) {
959 (*static_cast<CStatTreeItemCounter*>(s_sessionUpload->GetChildById(id))) += bytes;
960 } else {
961 CStatTreeItemCounter* tmp = new CStatTreeItemCounter(GetSoftName(SoftType) + ": %s");
962 tmp->SetDisplayMode(dmBytes);
963 (*tmp) += bytes;
964 s_sessionUpload->AddChild(tmp, id);
965 }
966}
967
968inline bool SupportsOSInfo(unsigned clientSoft)
969{

Callers

nothing calls this directly

Calls 6

GetSoftIDFunction · 0.85
GetSoftNameFunction · 0.85
HasChildWithIdMethod · 0.80
GetChildByIdMethod · 0.80
SetDisplayModeMethod · 0.45
AddChildMethod · 0.45

Tested by

no test coverage detected