Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdum committed Jan 21, 2015
1 parent 0f1d628 commit 9ea382a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -3,6 +3,6 @@ A k-v database using /shm/ to shared memory
[![https://img.shields.io/travis/ericdum/node-shared-memory.svg](https://img.shields.io/travis/ericdum/node-shared-memory.svg)](https://travis-ci.org/ericdum/node-shared-memory)
[![Coverage Status](https://img.shields.io/coveralls/ericdum/node-shared-memory.svg)](https://coveralls.io/r/ericdum/node-shared-memory?branch=master)
[![npm](https://img.shields.io/npm/v/shared-memory.svg)](https://www.npmjs.com/package/shared-memory)
[![npm](https://img.shields.io/npm/dm/localeval.svg)](https://www.npmjs.com/package/shared-memory)
[![npm](https://img.shields.io/npm/dm/shared-memory.svg)](https://www.npmjs.com/package/shared-memory)

### Working...
8 changes: 5 additions & 3 deletions mp.js
Expand Up @@ -29,9 +29,11 @@ if(cluster.isMaster) {
var i = 0;
var func = [];
while(i++ < max){
func.push(function(){
db.increase('key', this);
});
(function(i){
func.push(function(){
db.increase('key'+i, this);
})
})(i);
}
p = ep()
p.on('error', function(err){
Expand Down

0 comments on commit 9ea382a

Please sign in to comment.