winterhazel commented on code in PR #13030:
URL: https://github.com/apache/cloudstack/pull/13030#discussion_r3509995670


##########
server/src/main/java/com/cloud/api/query/dao/HostJoinDaoImpl.java:
##########
@@ -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));

Review Comment:
   @sureshanaparti these will not result in the same value.
   
   `last_pinged` is shifted 10 bits to the right before being stored. See 
`ResourceManagerImpl#createHostVO` for instance.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to