Commit 0805882b03fa429dec158cfc97dfee90a2e22877
1 parent
6a0dc72b
Exists in
master
1.optimized reform format info
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
src/main/java/com/taover/heartbeat/ClientHolderImpl.java
... | ... | @@ -26,7 +26,7 @@ public class ClientHolderImpl implements ClientHolder{ |
26 | 26 | synchronized (this.clientMap) { |
27 | 27 | ClientInstance client = null; |
28 | 28 | if(clientMap.containsKey(clientRequest.getIdentity())) { |
29 | - client = clientMap.get(clientRequest.getIdentity()); | |
29 | + client = clientMap.get(clientRequest.getIdentity()); | |
30 | 30 | clientMap.put(client.getIdentity(), client); |
31 | 31 | }else { |
32 | 32 | client = new ClientInstance(clientRequest); | ... | ... |
src/main/java/com/taover/heartbeat/bean/ReformInstance.java
... | ... | @@ -75,7 +75,7 @@ public class ReformInstance { |
75 | 75 | |
76 | 76 | private String formatWeixin(ClientInstance instance) { |
77 | 77 | String htmlContent = " 超过"+instance.getFixRateSec()+"秒未收到请求,请确认CODE["+instance.getCode()+"]对应的客户端是否运行正常\n"; |
78 | - htmlContent += " 客户端最后一次请求时间: "+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date(instance.getUnixtime()*1000)); | |
78 | + htmlContent += " 客户端最后一次请求时间: "+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date(instance.getLastestClientRequest().getUnixtime()*1000))+"\n"; | |
79 | 79 | htmlContent += " 客户端IP:"+instance.getIp(); |
80 | 80 | return htmlContent; |
81 | 81 | } | ... | ... |