aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2016-10-03 13:08:47 -0600
committerGitHub <noreply@github.com>2016-10-03 13:08:47 -0600
commitf0d021274dede8e672f17a2dbcb997c5f0760c41 (patch)
treeb030b5025c9984cc3cd55dba574b5e29e6de6dfd
parentMerge pull request #595 from namore/add_warning_foreach_keys (diff)
parentFix Stats.Sub() for Stats.TxN. (diff)
downloaddedo-f0d021274dede8e672f17a2dbcb997c5f0760c41.tar.gz
dedo-f0d021274dede8e672f17a2dbcb997c5f0760c41.tar.xz
Merge pull request #601 from benbjohnson/stats-tx-n
Fix Stats.Sub() for Stats.TxN.
-rw-r--r--db.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.go b/db.go
index 1223493..48da059 100644
--- a/db.go
+++ b/db.go
@@ -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
}