Skip to content

Commit

Permalink
Merge pull request #331 from m-lab/sandbox-roberto-increase-message-size
Browse files Browse the repository at this point in the history
ndt7: fix message scaling in the download measurement
  • Loading branch information
robertodauria committed Jun 1, 2021
2 parents 3fc9f3d + ba37863 commit 913b54a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ndt7/download/sender/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func Start(ctx context.Context, conn *websocket.Conn, data *model.ArchivalData)
// scale deployments of this algorithm anyway, so there's no point
// in engaging in fine grained calibration before knowing.
totalSent += int64(bulkMessageSize)
if totalSent >= spec.MaxScaledMessageSize {
if int64(bulkMessageSize) >= spec.MaxScaledMessageSize {
continue // No further scaling is required
}
if int64(bulkMessageSize) > totalSent/spec.ScalingFraction {
Expand Down

0 comments on commit 913b54a

Please sign in to comment.