mirror of https://github.com/hak5/bolt.git
Minor fix.
parent
283c556aa8
commit
d1a77a9c82
2
db.go
2
db.go
|
@ -578,7 +578,7 @@ func (s *Stats) Sub(other *Stats) Stats {
|
||||||
if other == nil {
|
if other == nil {
|
||||||
return *s
|
return *s
|
||||||
}
|
}
|
||||||
var diff Stat
|
var diff Stats
|
||||||
diff.TxN = other.TxN - s.TxN
|
diff.TxN = other.TxN - s.TxN
|
||||||
diff.TxStats = s.TxStats.Sub(&other.TxStats)
|
diff.TxStats = s.TxStats.Sub(&other.TxStats)
|
||||||
return diff
|
return diff
|
||||||
|
|
Loading…
Reference in New Issue