Skip to content
This repository has been archived by the owner on Aug 26, 2020. It is now read-only.

Commit

Permalink
OR 0 when getting stats
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioramos committed Jan 10, 2014
1 parent 85d3e5f commit 5bc1a7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "inverted-index",
"version": "1.4.0",
"version": "1.5.0",
"description": "inverted-index for level with pagination, sift3/cosine distance and tf-idf ranking",
"keywords": [],
"homepage": "https://github.com/ramitos/inverted-index",
Expand Down
8 changes: 4 additions & 4 deletions src/inverted-index.js
Expand Up @@ -117,10 +117,10 @@ inverted.prototype.updateStats = function(){
valueEncoding: 'json'
}), function(err, stats){
if(err) return
self.stats._min = stats.min
self.stats._max = stats.max
self.stats._mean = stats.mean
self.stats._sum = stats.sum
self.stats._min = stats.min || 0
self.stats._max = stats.max || 0
self.stats._mean = stats.mean || 0
self.stats._sum = stats.sum || 0
})
}

Expand Down

0 comments on commit 5bc1a7c

Please sign in to comment.