diff options
-rw-r--r-- | db.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -577,7 +577,11 @@ type Stats struct { func (s *Stats) Sub(other *Stats) Stats { var diff Stats if s == nil { - return diff + if other == nil { + return diff + } else { + return *other + } } diff = *s if other == nil { |