#!/usr/bin/env node

/*jshint node:true */
var cluster = require('cluster');
var numCPUs = require('os').cpus().length;

if (cluster.isMaster) {
  // Start the workers
  for (var i = numCPUs; i >= 0; i--) {
    cluster.fork();
  }

  cluster.on('exit', function(deadWorker) {
    // revive
    var worker = cluster.fork();

    // log the dead worker
    console.log('worker ' + deadWorker.process.pid + ' replaced by ' + worker.process.pid);
  });
} else {
  console.log('Starting worker ' + process.pid);
  require('./web');
}

@@ -13,17 +13,16 @@
 nv node%0A
-%0A
 /*jshint
@@ -35,16 +35,32 @@
 true */%0A
+%0A%22use strict%22;%0A%0A
 var clus
@@ -89,138 +89,117 @@
 ');%0A
-var numCPUs = require('os').cpus().length;%0A%0Aif (cluster.isMaster) %7B%0A  // Start th
+%0Aif (cluster.isMaster) %7B%0A    var workerCount = require('os').cpus().length;%0A%0A    whil
 e 
+(
 worker
-s%0A  for (var i = numCPUs; i %3E= 0; i
+Count
 --) %7B%0A
+    
     
@@ -220,11 +220,15 @@
 ;%0A  
+ 
+ 
 %7D%0A%0A
+  
   cl
@@ -252,16 +252,17 @@
 function
+ 
 (deadWor
@@ -276,18 +276,8 @@
     
-// revive%0A
     
@@ -314,31 +314,8 @@
     
-// log the dead worker%0A
     
@@ -380,16 +380,28 @@
 d by ' +
+%0A           
  worker.
@@ -414,16 +414,18 @@
 s.pid);%0A
+  
   %7D);%0A%7D 
@@ -431,16 +431,18 @@
  else %7B%0A
+  
   consol
@@ -482,16 +482,18 @@
 s.pid);%0A
+  
   requir

Fix off-by-one error. Reformat.