Minor fix.

master
Ben Johnson 2014-06-24 11:58:46 -06:00
parent 283c556aa8
commit d1a77a9c82
1 changed files with 1 additions and 1 deletions

2
db.go
View File

@ -578,7 +578,7 @@ func (s *Stats) Sub(other *Stats) Stats {
if other == nil {
return *s
}
var diff Stat
var diff Stats
diff.TxN = other.TxN - s.TxN
diff.TxStats = s.TxStats.Sub(&other.TxStats)
return diff