Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-orbit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Katerina Roukounaki
cloud-orbit
Commits
6e2b9101
Commit
6e2b9101
authored
Nov 17, 2014
by
Aggelos Giantsios
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call the Process Monad once in collect_orbit
parent
3f177aa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
Master.hs
Master.hs
+4
-5
No files found.
Master.hs
View file @
6e2b9101
...
@@ -128,11 +128,10 @@ collect_credit crdt =
...
@@ -128,11 +128,10 @@ collect_credit crdt =
]
]
-- collect_orbit collects partial orbits and stats from N workers.
-- collect_orbit collects partial orbits and stats from N workers.
collect_orbit
::
Int
->
Int
->
(
Process
[
Vertex
],
Process
[
Stats
])
collect_orbit
::
Int
->
Int
->
Process
([
Vertex
],
[
Stats
])
collect_orbit
elapsedTime
n
=
(
orbit
,
stats
)
collect_orbit
elapsedTime
n
=
do
where
x
=
do_collect_orbit
n
[]
[]
(
orbit
,
stats
)
<-
do_collect_orbit
n
[]
[]
orbit
=
x
>>=
(
\
(
partOrBits
,
_
)
->
return
$
concat
partOrBits
)
return
(
concat
orbit
,
master_stats
elapsedTime
stats
:
stats
)
stats
=
x
>>=
(
\
(
_
,
workerStats
)
->
return
$
(
master_stats
elapsedTime
workerStats
)
:
workerStats
)
do_collect_orbit
::
Int
->
[[
Vertex
]]
->
[
Stats
]
->
Process
([[
Vertex
]],
[
Stats
])
do_collect_orbit
::
Int
->
[[
Vertex
]]
->
[
Stats
]
->
Process
([[
Vertex
]],
[
Stats
])
do_collect_orbit
0
partOrbits
workerStats
=
return
(
partOrbits
,
workerStats
)
do_collect_orbit
0
partOrbits
workerStats
=
return
(
partOrbits
,
workerStats
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment