@live-change/dao 0.9.97 → 0.9.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/DaoCache.js +1 -0
  2. package/package.json +2 -2
package/lib/DaoCache.js CHANGED
@@ -217,6 +217,7 @@ class DaoCache extends EventEmitter {
217
217
  this.missesPerMinute = this.missesCounter
218
218
  this.hitsCounter = 0
219
219
  this.missesCounter = 0
220
+ if(this.hitsPerMinute+this.missesPerMinute === 0) return
220
221
  console.log(`CACHE STATS hit rate ${this.hitsPerMinute/(this.hitsPerMinute+this.missesPerMinute)*100}%\n`+
221
222
  ` hits=${this.hitsPerMinute} misses=${this.missesPerMinute}`+
222
223
  ` cacheSize=${this.cachedCount} stats=${this.cacheState.size}`)
package/package.json CHANGED
@@ -35,6 +35,6 @@
35
35
  "scripts": {
36
36
  "test": "NODE_ENV=test tape tests/*"
37
37
  },
38
- "version": "0.9.97",
39
- "gitHead": "10ec914fe91a9fe10464d68c6d145e152bb1073e"
38
+ "version": "0.9.98",
39
+ "gitHead": "a0e25c0ac835707d27763e56a2c20bd75d978583"
40
40
  }