lisai17@sina.com 2020-10-13 17:15:03 +08:00
parent f627babeb3
commit 13c4ae5985
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ public class CacheController extends Controller {
}
public void last() {
Map<Integer, Record> map = new HashMap<>();
Record map = new Record();
for (Map.Entry<Integer, Record> entry : SvrCacheData.SUP_HEARTBEAT.entrySet()) {
Record c = entry.getValue();
@ -44,7 +44,7 @@ public class CacheController extends Controller {
out.set("tm", DateTimeUtil.sdfhms.get().format(new Date(c.getLong("tm"))));
}
map.put(entry.getKey(), out);
map.set(entry.getKey().toString(), out);
}
renderJson(map);
}