You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2020/08/25 18:44:56 UTC

[GitHub] [trafficcontrol] srijeet0406 edited a comment on pull request #4985: Find a better way to determine last status change

srijeet0406 edited a comment on pull request #4985:
URL: https://github.com/apache/trafficcontrol/pull/4985#issuecomment-680204376


   Actually, scratch that. You cannot change the `status_last_updated` time by doing a `PUT` to `/servers/{{ID}}` because of this part of the code:
   
   `if newServer.StatusID != nil && *newServer.StatusID != originalStatusID {
   
   			newServer.StatusLastUpdated = time.Now()
   
   		} 
   else 
   {
   
   			newServer.StatusLastUpdated = origSer[0].StatusLastUpdated
   		}`


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org