mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
format
This commit is contained in:
@@ -282,7 +282,6 @@ func joinByMachine(s *raft.Server, machine string, scheme string) error {
|
||||
}
|
||||
|
||||
func (r *raftServer) Stats() []byte {
|
||||
|
||||
r.serverStats.LeaderUptime = time.Now().Sub(r.serverStats.leaderStartTime).String()
|
||||
|
||||
queue := r.serverStats.sendRateQueue
|
||||
|
||||
@@ -88,7 +88,6 @@ type raftPeerStats struct {
|
||||
|
||||
// Succ function update the raftPeerStats with a successful send
|
||||
func (ps *raftPeerStats) Succ(d time.Duration) {
|
||||
|
||||
total := float64(ps.SuccCnt) * ps.AvgLatency
|
||||
totalSquare := float64(ps.SuccCnt) * ps.avgLatencySquare
|
||||
|
||||
|
||||
Reference in New Issue
Block a user