-
Notifications
You must be signed in to change notification settings - Fork 407
Open
Description
seem to be calculated using random values. Setting a given minimum and maximum delay can be useful, for example:
`
function Get-CalculatedDelay
{
param(
[int] $MinDelay,
[int] $MaxDelay,
[int] $JitterPercentage
)
$jitterFactor = (Get-Random -Minimum (-$JitterPercentage) -Maximum $JitterPercentage) / 100.0
$baseDelay = Get-Random -Minimum $MinDelay -Maximum $MaxDelay
$delay = [math]::Round($baseDelay * (1 + $jitterFactor))
return $delay
}
`
Metadata
Metadata
Assignees
Labels
No labels