Merge branch 'v0.10.1-beta-4253' into v0.10.1-beta-rc1-branch

This commit is contained in:
Olaoluwa Osuntokun 2020-05-18 19:16:41 -07:00
commit 935c2f2c10

View File

@ -605,8 +605,8 @@ func formatPayment(payment *lnrpc.Payment, aliases *aliasCache) string {
return "-"
}
resolveTime := time.Unix(0, timeNs)
resolveTimeMs := resolveTime.Sub(createTime).
Milliseconds()
resolveTimeDiff := resolveTime.Sub(createTime)
resolveTimeMs := resolveTimeDiff / time.Millisecond
return fmt.Sprintf(
"%.3f", float64(resolveTimeMs)/1000.0,
)