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

Method PushSample

src/webserver/src/WebServer.cpp:1283–1292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1281}
1282
1283void CStatsData::PushSample(uint32 sample)
1284{
1285 m_start_index = (m_start_index + 1) % m_size;
1286 m_end_index = (m_end_index + 1) % m_size;
1287 m_data[m_start_index] = sample;
1288
1289 if ( m_max_value < sample ) {
1290 m_max_value = sample;
1291 }
1292}
1293
1294CStatsCollection::CStatsCollection(int size, CamulewebApp *iface)
1295{

Callers 1

ReQueryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected