Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
60d58a1c
Commit
60d58a1c
authored
2 years ago
by
Jonah Husson
Browse files
Options
Downloads
Patches
Plain Diff
Add suggested values for NewDummyTrafficManager inputs
parent
b6705445
No related branches found
No related tags found
2 merge requests
!510
Release
,
!377
Add suggested values for NewDummyTrafficManager inputs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/dummy.go
+3
-3
3 additions, 3 deletions
bindings/dummy.go
with
3 additions
and
3 deletions
bindings/dummy.go
+
3
−
3
View file @
60d58a1c
...
@@ -29,12 +29,12 @@ type DummyTraffic struct {
...
@@ -29,12 +29,12 @@ type DummyTraffic struct {
// Parameters:
// Parameters:
// - cmixId - a Cmix object ID in the tracker.
// - cmixId - a Cmix object ID in the tracker.
// - maxNumMessages - the upper bound of the random number of messages sent
// - maxNumMessages - the upper bound of the random number of messages sent
// each sending cycle.
// each sending cycle.
Suggested value: 5.
// - avgSendDeltaMS - the average duration, in milliseconds, to wait between
// - avgSendDeltaMS - the average duration, in milliseconds, to wait between
// sends.
// sends.
Suggested value: 60000.
// - randomRangeMS - the upper bound of the interval between sending cycles, in
// - randomRangeMS - the upper bound of the interval between sending cycles, in
// milliseconds. Sends occur every avgSendDeltaMS +/- a random duration with
// milliseconds. Sends occur every avgSendDeltaMS +/- a random duration with
// an upper bound of randomRangeMS.
// an upper bound of randomRangeMS.
Suggested value: 1000.
func
NewDummyTrafficManager
(
cmixId
,
maxNumMessages
,
avgSendDeltaMS
,
func
NewDummyTrafficManager
(
cmixId
,
maxNumMessages
,
avgSendDeltaMS
,
randomRangeMS
int
)
(
*
DummyTraffic
,
error
)
{
randomRangeMS
int
)
(
*
DummyTraffic
,
error
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment