Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matheus Melo
stream_kubejobs
Commits
b754b4a9
Commit
b754b4a9
authored
Mar 11, 2020
by
José Ignácio
Browse files
time shifting
parent
b7e0ecce
Changes
1
Hide whitespace changes
Inline
Side-by-side
stream_kubejobs/__init__.py
View file @
b754b4a9
...
...
@@ -120,6 +120,7 @@ class KubeJobStreamProgress(Plugin):
replicas
,
main_q_size
):
items_flux
=
(
tracked_items
-
self
.
tracked_items
)
/
self
.
collect_period
items_flux
=
items_flux
*
(
4
/
6
)
error
=
replicas
/
self
.
expected_time
-
items_flux
-
(
0.5
if
main_q_size
>
items_flux
*
1.5
else
0
)
self
.
tracked_items
=
tracked_items
self
.
last_error
=
error
...
...
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