Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
server: fix lastpinged of hosts
  • Loading branch information
weizhouapache committed Apr 15, 2026
commit 60fe9602583c2ec103c2b2be05b79d6ee8b8a325
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private void setNewHostResponseBase(HostJoinVO host, EnumSet<HostDetails> detail
hostResponse.setHypervisor(hypervisorType);
}
hostResponse.setHostType(host.getType());
hostResponse.setLastPinged(new Date(host.getLastPinged()));
hostResponse.setLastPinged(new Date(host.getLastPinged() << 10));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
hostResponse.setLastPinged(new Date(host.getLastPinged() << 10));
hostResponse.setLastPinged(new Date(host.getLastPinged() * 1000));

Long mshostId = host.getManagementServerId();
if (mshostId != null) {
ManagementServerHostVO managementServer = managementServerHostDao.findByMsid(host.getManagementServerId());
Expand Down
Loading