Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-service
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
mlge
2017-10-31 11:19:54 +0800
Commit
a1f099ed8bb6cb8e05e6c16c801c024b00fe3942
1 parent
fadf23db
ip一键对比 bug修复
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
monitor-service-compare/src/main/java/com/monitor/compare/ctrl/CompareCtrl.java
monitor-service-compare/src/main/java/com/monitor/compare/service/ServiceCompare.java
monitor-service-compare/src/main/java/com/monitor/compare/ctrl/CompareCtrl.java
View file @
a1f099e
...
...
@@ -148,6 +148,7 @@ public class CompareCtrl {
serversExecutor
.
shutdownNow
();
}
}
LOGGER
.
info
(
"check ip tasks is over."
);
resp
.
setData
(
compareResults
);
return
resp
;
}
...
...
monitor-service-compare/src/main/java/com/monitor/compare/service/ServiceCompare.java
View file @
a1f099e
...
...
@@ -125,6 +125,10 @@ public class ServiceCompare {
String
ips
=
StringUtils
.
substringBetween
(
destLine
,
"=("
,
")"
);
if
(
StringUtils
.
isBlank
(
ips
)){
return
ipList
;
}
String
[]
ipArray
=
ips
.
split
(
"master@"
);
if
(
null
==
ipArray
)
{
...
...
Please
register
or
login
to post a comment