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

Method AddSourceOrigin

src/Statistics.cpp:902–912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

900
901
902void CStatistics::AddSourceOrigin(unsigned origin)
903{
904 CStatTreeItemCounter* counter = static_cast<CStatTreeItemCounter*>(s_foundSources->GetChildById(0x0100 + origin));
905 if (counter) {
906 ++(*counter);
907 } else {
908 counter = new CStatTreeItemCounter(OriginToText(origin) + ": %s", stHideIfZero | stShowPercent);
909 ++(*counter);
910 s_foundSources->AddChild(counter, 0x0100 + origin);
911 }
912}
913
914void CStatistics::RemoveSourceOrigin(unsigned origin)
915{

Callers

nothing calls this directly

Calls 3

OriginToTextFunction · 0.85
GetChildByIdMethod · 0.80
AddChildMethod · 0.45

Tested by

no test coverage detected