srijeet0406 commented on code in PR #7539:
URL: https://github.com/apache/trafficcontrol/pull/7539#discussion_r1210991253


##########
traffic_monitor/health/cache.go:
##########
@@ -115,7 +115,10 @@ func GetVitals(newResult *cache.Result, prevResult 
*cache.Result, mc *tc.Traffic
                }
 
                if prevResult != nil && prevResult.InterfaceVitals != nil && 
prevResult.InterfaceVitals[ifaceName].BytesOut != 0 {
-                       elapsedTimeInSecs := 
float64(newResult.Time.UnixNano()-prevResult.Time.UnixNano()) / 1000000000
+                       elapsedTimeInSecs := 
float64(newResult.Time.UnixMilli()-prevResult.Time.UnixMilli()) / 1000

Review Comment:
   Any particular reason behind changing this from nanoseconds to milliseconds?



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