dev
parent
f627babeb3
commit
13c4ae5985
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue