AndreasSko / go-jwlm

A command line tool to easily merge JW Library backups, written in Go.
MIT License
74 stars 4 forks source link

Mobile: More accurate DB stats #44

Closed AndreasSko closed 3 years ago

AndreasSko commented 3 years ago

Before, DatabaseStats would just return the length for each slice of the database. As there might exist a lot of nil-values, the numbers can be quite off. This changes it, so the actual non-nil values are counted and returned.

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.004%) to 84.972% when pulling 49b94108b9a1774d512377322908eaaebcb28c0a on mobile_stats into d660f8600a9490852e63325e8d0bc7d71ca5eacb on master.