Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GW_pressureTest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
李远洪
GW_pressureTest
Commits
11a031a4
Commit
11a031a4
authored
Mar 30, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了新硬件压测程序随机数多出一位的bug
parent
7c5aabee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/pressure/SendMultMsgNewThread.py
lib/pressure/SendMultMsgNewThread.py
+3
-3
No files found.
lib/pressure/SendMultMsgNewThread.py
View file @
11a031a4
...
...
@@ -20,12 +20,12 @@ class SendMultMsgNewThread(ThreadBase):
self
.
msg
=
msg
self
.
timeOut
=
30
#socket超时时间
self
.
BUF_SIZE
=
1024
#接收消息缓存
self
.
threadCount
=
10
00
#并发线程数
self
.
threadCount
=
10
#并发线程数
self
.
totalTime
=
0
#所有线程的运行总和
self
.
threadArr
=
{}
#保存每个线程的信息
self
.
failThreadCount
=
0
#失败线程数
self
.
durThreads
=
[]
#持续发送线程数组,当数组为空,表示所有线程已经结束
dt
=
1
*
1
0
*
60
dt
=
1
*
1
*
60
self
.
durTime
=
dt
#线程持续时间
self
.
connectTimeoutNum
=
0
#连接超时线程数
self
.
sendTimeoutNum
=
0
#发送超时线程数
...
...
@@ -293,7 +293,7 @@ class SendMultMsgNewThread(ThreadBase):
# 获取随机消息数据(新硬件车机)
def
getRandomMsg_new
(
self
,
carId
):
# carId = 201912010002
wh
=
random
.
randint
(
0
,
5
)
wh
=
random
.
randint
(
0
,
4
)
msg
=
""
if
wh
==
0
:
hearbeatObj
=
TerminalHeartbeat_msg
()
...
...
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