Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
meta_base_code
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黎涛
meta_base_code
Commits
346cd185
Commit
346cd185
authored
Dec 03, 2020
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a49d8d21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
celery_stats_monitor.py
celery_stats/celery_stats_monitor.py
+1
-1
No files found.
celery_stats/celery_stats_monitor.py
View file @
346cd185
...
@@ -34,7 +34,7 @@ class Parse_data:
...
@@ -34,7 +34,7 @@ class Parse_data:
len_data_diff
=
old_len_data
-
len_data
len_data_diff
=
old_len_data
-
len_data
rate
=
len_data_diff
/
per_sec
rate
=
len_data_diff
/
per_sec
if
len_data_diff
>
0
:
if
len_data_diff
>
0
:
use_time
=
round
(
len_data
/
rate
/
60
/
60
,
1
)
use_time
=
round
(
len_data
/
rate
/
(
60
/
per_sec
)
/
60
,
1
)
return
"{} 目前{}队列中有{}条数据,预计{}小时后处理完成"
.
format
(
time_ts
,
key_name
,
str
(
len_data
),
str
(
use_time
))
return
"{} 目前{}队列中有{}条数据,预计{}小时后处理完成"
.
format
(
time_ts
,
key_name
,
str
(
len_data
),
str
(
use_time
))
else
:
else
:
if
abs
(
rate
)
>
0
:
if
abs
(
rate
)
>
0
:
...
...
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