diff --git a/cmd/lncli/cmd_pay.go b/cmd/lncli/cmd_pay.go index a90330b5..0f99a1fa 100644 --- a/cmd/lncli/cmd_pay.go +++ b/cmd/lncli/cmd_pay.go @@ -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, )