Documentation ¶
Index ¶
Constants ¶
View Source
const BytesPerKilobit = 125
BytesPerKilobit is the number of bytes in a kilobit.
Variables ¶
This section is empty.
Functions ¶
func CreateStats ¶
func CreateStats(precomputed map[tc.CacheName]cache.PrecomputedData, toData todata.TOData, crStates tc.CRStates, lastStats *dsdata.LastStats, now time.Time, mc tc.TrafficMonitorConfigMap, events health.ThreadsafeEvents, states peer.CRStatesThreadsafe) (*dsdata.Stats, error)
CreateStats aggregates and creates statistics from given precomputed stat history. It returns the created stats, information about these stats necessary for the next calculation, and any error. Note lastStats is mutated, being set with the new last stats.
func SumDSAstats ¶
func SumDSAstats(ds *dsdata.StatCacheStats, cacheStat *cache.DSStat)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.