Skip to content

Commit

Permalink
Merge pull request etcd-io#601 from benbjohnson/stats-tx-n
Browse files Browse the repository at this point in the history
Fix Stats.Sub() for Stats.TxN.
  • Loading branch information
benbjohnson authored Oct 3, 2016
2 parents fff57c1 + 0d68f16 commit f0d0212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db.go
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ func (s *Stats) Sub(other *Stats) Stats {
diff.PendingPageN = s.PendingPageN
diff.FreeAlloc = s.FreeAlloc
diff.FreelistInuse = s.FreelistInuse
diff.TxN = other.TxN - s.TxN
diff.TxN = s.TxN - other.TxN
diff.TxStats = s.TxStats.Sub(&other.TxStats)
return diff
}
Expand Down

0 comments on commit f0d0212

Please sign in to comment.