1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-10 00:29:01 +02:00

Fix 纠正latency拼写

This commit is contained in:
zgat 2020-05-09 13:51:33 +08:00 committed by GitHub
parent e79093cb5d
commit 2fa98cd01e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ type statistics struct {
ewt int64
cs float64
ss float64
lantency float64
latency float64
cpu float64
req int64
}
@ -273,7 +273,7 @@ func (p *wrrPicker) pick(ctx context.Context, opts balancer.PickInfo) (balancer.
cs = 0.2
}
conn.score = math.Sqrt((cs * ss * ss * 1e9) / (lagv * cpu))
stats[i] = statistics{cs: cs, ss: ss, lantency: lagv, cpu: cpu, req: req}
stats[i] = statistics{cs: cs, ss: ss, latency: lagv, cpu: cpu, req: req}
}
stats[i].addr = conn.addr.Addr