Skip to content

Commit a6d7870

Browse files
committed
ACTUALLY limit traffic instead of just blasting the firehose
1 parent 0817204 commit a6d7870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scaletest/trafficgen/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (r *Runner) Run(ctx context.Context, _ string, logs io.Writer) error {
5151
reconnect = uuid.New()
5252
height uint16 = 25
5353
width uint16 = 80
54-
tickInterval = r.cfg.TicksPerSecond
54+
tickInterval = time.Second / time.Duration(r.cfg.TicksPerSecond)
5555
bytesPerTick = r.cfg.BytesPerSecond / r.cfg.TicksPerSecond
5656
)
5757

0 commit comments

Comments
 (0)