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
wangning
2016-11-05 19:48:55 +0800
Commit
ebbd398b3137a953342fa3cd4cba47caf73525cb
1 parent
00a02f15
update
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
monitor-service-influxdb/src/main/java/com/monitor/influxdb/mapper/impl/ServiceAccessMapperImpl.java
monitor-service-influxdb/src/main/java/com/monitor/influxdb/mapper/impl/ServiceAccessMapperImpl.java
View file @
ebbd398
...
...
@@ -444,6 +444,7 @@ public class ServiceAccessMapperImpl extends InfluxDBQuery implements ServiceAcc
Double
count1
=
(
Double
)
series1
.
getValues
().
get
(
0
).
get
(
1
);
Double
mean
=
(
Double
)
series1
.
getValues
().
get
(
0
).
get
(
2
);
Double
ratio
=
count2
/
count1
;
log
.
info
(
"count2:"
+
count2
+
",count1:"
+
count1
+
",mean:"
+
mean
);
if
(
ratio
>=
0.95
){
Map
map
=
new
HashMap
();
map
.
put
(
"hostAddress"
,
hostAddress
);
...
...
Please
register
or
login
to post a comment