| 952 | } |
| 953 | |
| 954 | void 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 | |
| 968 | inline bool SupportsOSInfo(unsigned clientSoft) |
| 969 | { |
nothing calls this directly
no test coverage detected