From 8c386e72f31126638236f4c642230b7ca4d84236 Mon Sep 17 00:00:00 2001 From: Martin Kobetic Date: Fri, 27 Jun 2014 17:38:06 +0000 Subject: Copy the free pages stats from the receiver --- db.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'db.go') diff --git a/db.go b/db.go index 7e60b04..6ef35ea 100644 --- a/db.go +++ b/db.go @@ -579,6 +579,10 @@ func (s *Stats) Sub(other *Stats) Stats { return *s } var diff Stats + diff.FreePageN = s.FreePageN + diff.PendingPageN = s.PendingPageN + diff.FreeAlloc = s.FreeAlloc + diff.FreelistInuse = s.FreelistInuse diff.TxN = other.TxN - s.TxN diff.TxStats = s.TxStats.Sub(&other.TxStats) return diff -- cgit v1.2.3