This commit is contained in:
Xiang Li
2013-09-10 12:28:58 -04:00
parent 31aa3dfe82
commit 86e03d2298
2 changed files with 0 additions and 2 deletions

View File

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

View File

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