MCPcopy Create free account
hub / github.com/ZingerLittleBee/ServerBee / traffic_bytes

Function traffic_bytes

crates/server/src/dev_demo.rs:939–942  ·  view source on GitHub ↗
(spec: DemoServerSpec, point: usize, multiplier: usize)

Source from the content-addressed store, hash-verified

937
938fn traffic_bytes(spec: DemoServerSpec, point: usize, multiplier: usize) -> i64 {
939 let seed = spec.id_suffix.parse::<usize>().unwrap_or(1);
940 (20 + wave(seed + multiplier, point, 900) as i64) * 1024 * 1024
941}
942
943/// Wall-clock timestamp (seconds) captured the first time a live demo sample is
944/// requested, i.e. roughly the demo process start. Anchors `live_sample_index`
945/// so it counts ticks elapsed since startup instead of the absolute Unix epoch.

Callers 1

seed_traffic_recordsFunction · 0.85

Calls 1

waveFunction · 0.85

Tested by

no test coverage detected