Authored by zhengyouwei

add time

@@ -45,7 +45,7 @@ public class JavaProjectMapperImpl extends InfluxDBQuery implements JavaProjectM @@ -45,7 +45,7 @@ public class JavaProjectMapperImpl extends InfluxDBQuery implements JavaProjectM
45 45
46 @Override 46 @Override
47 public List<JavaProjectStatus> getByProject(String project) { 47 public List<JavaProjectStatus> getByProject(String project) {
48 - String cpmmond = "select cloud,ip,lastStart,status from java_project_status where time > now() - 4m and \"name\" = '" + project + "' order by time desc"; 48 + String cpmmond = "select cloud,ip,lastStart,status from java_project_status where time > now() - 6m and \"name\" = '" + project + "' order by time desc";
49 QueryResult result = query(InfluxDBContants.AWS, cpmmond, InfluxDBContants.MONITOR_SYSTEM); 49 QueryResult result = query(InfluxDBContants.AWS, cpmmond, InfluxDBContants.MONITOR_SYSTEM);
50 List<List<Object>> lists = QueryResultUtil.getValues(result); 50 List<List<Object>> lists = QueryResultUtil.getValues(result);
51 List<JavaProjectStatus> javaProjectStatusList = new ArrayList<>(); 51 List<JavaProjectStatus> javaProjectStatusList = new ArrayList<>();