Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
comms
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
comms
Commits
ce219bba
Commit
ce219bba
authored
Oct 23, 2022
by
benjamin
Browse files
Options
Downloads
Patches
Plain Diff
minor fixes to round sorting
parent
3441c3fd
No related branches found
No related tags found
2 merge requests
!67
makes the system more agressive in selecting a round to send messages to, and...
,
!66
Merge release into master
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
network/dataStructures/waitingRounds.go
+2
-2
2 additions, 2 deletions
network/dataStructures/waitingRounds.go
with
2 additions
and
2 deletions
network/dataStructures/waitingRounds.go
+
2
−
2
View file @
ce219bba
...
@@ -160,13 +160,13 @@ func (wr *WaitingRounds) storeReadRounds() {
...
@@ -160,13 +160,13 @@ func (wr *WaitingRounds) storeReadRounds() {
//sort the rounds list, soonest first
//sort the rounds list, soonest first
sort
.
Slice
(
roundsList
,
func
(
i
,
j
int
)
bool
{
sort
.
Slice
(
roundsList
,
func
(
i
,
j
int
)
bool
{
return
roundsList
[
i
]
.
StartTime
()
.
After
(
roundsList
[
j
]
.
StartTime
())
return
roundsList
[
i
]
.
StartTime
()
.
Before
(
roundsList
[
j
]
.
StartTime
())
})
})
var
rprint
string
var
rprint
string
for
_
,
r
:=
range
roundsList
{
for
_
,
r
:=
range
roundsList
{
rprint
+=
fmt
.
Sprintf
(
"
\n\t
round: %d, startTime: %s, time to start: %s"
,
rprint
+=
fmt
.
Sprintf
(
"
\n\t
round: %d, startTime: %s, time to start: %s"
,
r
.
info
.
ID
,
r
.
StartTime
(),
netTime
.
Since
(
r
.
StartTime
()))
r
.
info
.
ID
,
r
.
StartTime
(),
netTime
.
Until
(
r
.
StartTime
()))
}
}
jww
.
INFO
.
Printf
(
"Rounds Order: %s"
,
rprint
)
jww
.
INFO
.
Printf
(
"Rounds Order: %s"
,
rprint
)
...
...
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