Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
m500-pressure
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
李远洪
m500-pressure
Commits
338a6a4e
Commit
338a6a4e
authored
Sep 01, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了一个bug3
parent
9b558d2c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
lib/socket/service/M500PressureServer.py
lib/socket/service/M500PressureServer.py
+2
-1
start.py
start.py
+2
-2
No files found.
lib/socket/service/M500PressureServer.py
View file @
338a6a4e
...
...
@@ -427,6 +427,7 @@ class M500PressureServer():
self
.
fireOn
()
time
.
sleep
(
2
)
self
.
startTravelService
()
time
.
sleep
(
180
)
except
BaseException
as
e
:
traceback
.
print_exc
()
self
.
info
[
"threadsObj"
]
.
pop
(
self
.
threadName
)
...
...
@@ -441,7 +442,7 @@ class M500PressureServer():
print
(
self
.
threadName
+
"线程出现异常
\n
"
)
self
.
writeToFile
(
"data/log1.txt"
,
self
.
threadName
+
"线程出现异常
\n
"
,
type
=
1
)
if
(
self
.
durTime
-
(
endTime
-
self
.
startTime
))
>
180
:
time
.
sleep
(
180
)
pass
else
:
break
if
self
.
threadName
in
self
.
info
[
"threadsObj"
]:
...
...
start.py
View file @
338a6a4e
...
...
@@ -15,8 +15,8 @@ def writeToFile(path,data,type=1): #1:代表追加 0:代表覆盖
with
open
(
path
,
"w"
,
encoding
=
'utf-8'
)
as
fi
:
fi
.
write
(
data
)
carNums
=
40
00
#模拟器数量
durTime
=
36
00
#线程持续的时间
carNums
=
3
00
#模拟器数量
durTime
=
252
00
#线程持续的时间
startDin
=
202008280000
#开始的车机号
info
=
{}
#存放脚本运行时的信息
info
[
"threadsObj"
]
=
{}
#用于运行线程的字典
...
...
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