Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
4e79b55b
Commit
4e79b55b
authored
Feb 25, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21978 from gmarek/refactor-gatherer
Auto commit by PR queue bot
parents
13d23644
fdb3020f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
resource_usage_gatherer.go
test/e2e/resource_usage_gatherer.go
+9
-0
No files found.
test/e2e/resource_usage_gatherer.go
View file @
4e79b55b
...
@@ -152,13 +152,22 @@ func (w *resourceGatherWorker) singleProbe() {
...
@@ -152,13 +152,22 @@ func (w *resourceGatherWorker) singleProbe() {
func
(
w
*
resourceGatherWorker
)
gather
(
initialSleep
time
.
Duration
)
{
func
(
w
*
resourceGatherWorker
)
gather
(
initialSleep
time
.
Duration
)
{
defer
utilruntime
.
HandleCrash
()
defer
utilruntime
.
HandleCrash
()
defer
w
.
wg
.
Done
()
defer
w
.
wg
.
Done
()
defer
Logf
(
"Closing worker for %v"
,
w
.
nodeName
)
select
{
select
{
case
<-
time
.
After
(
initialSleep
)
:
case
<-
time
.
After
(
initialSleep
)
:
// TODO: remove after #21313 is fixed
Logf
(
"Probing %v"
,
w
.
nodeName
)
w
.
singleProbe
()
w
.
singleProbe
()
// TODO: remove after #21313 is fixed
Logf
(
"Finished probe for %v"
,
w
.
nodeName
)
for
{
for
{
select
{
select
{
case
<-
time
.
After
(
resourceDataGatheringPeriod
)
:
case
<-
time
.
After
(
resourceDataGatheringPeriod
)
:
// TODO: remove after #21313 is fixed
Logf
(
"Probing %v"
,
w
.
nodeName
)
w
.
singleProbe
()
w
.
singleProbe
()
// TODO: remove after #21313 is fixed
Logf
(
"Finished probe for %v"
,
w
.
nodeName
)
case
<-
w
.
stopCh
:
case
<-
w
.
stopCh
:
return
return
}
}
...
...
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