Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-devicemonitor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e165b6ae
authored
Sep 17, 2021
by
黄小葱
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改bug
1 parent
e1f25659
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/cn/com/glsx/devicemonitor/modules/utils/DeviceUtils.java
src/main/java/cn/com/glsx/devicemonitor/modules/utils/DeviceUtils.java
View file @
e165b6a
...
...
@@ -78,8 +78,8 @@ public class DeviceUtils {
*/
public
static
void
parseSourceStatus
(
DeviceStatusModel
deviceStatus
,
Integer
speed
,
long
trackTime
,
long
offlineTime
)
{
long
now
=
System
.
currentTimeMillis
();
long
online
Time
=
6
*
60
*
1000
;
if
(
now
-
trackTime
>
online
Time
)
{
long
driving
Time
=
6
*
60
*
1000
;
if
(
now
-
trackTime
>
driving
Time
)
{
//大于6分钟 有源在线
deviceStatus
.
setStatus
(
ConstantsDevice
.
DEVICE_STATUS_ONLINE
);
deviceStatus
.
setStatusTime
(
DateUtils
.
formatTimeInSec
((
now
-
trackTime
)
/
1000
));
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment