Skip to content
Browse files

Fixes examples, need to npm i . locally to use

  • Loading branch information...
1 parent f3bd0e2 commit a6986762d09cb64d93d2fccda6e2fd23d4f04c28 @davglass committed Feb 7, 2012
Showing with 3 additions and 7 deletions.
  1. +2 −2 examples/example.js
  2. +1 −5 examples/express.js
View
4 examples/example.js
@@ -1,6 +1,6 @@
#!/usr/bin/env node
-var proc = require('../build/default/getrusage');
+var proc = require('getrusage');
var util = require('util');
@@ -13,5 +13,5 @@ process.on('exit', function() {
console.log('');
console.log(proc.usage());
console.log('CPU Time: ', proc.getcputime());
- console.log('User Time: ', proc.getusertime());
+ console.log('User Time: ', proc.getsystemtime());
});
View
6 examples/express.js
@@ -1,9 +1,7 @@
#!/usr/bin/env node
-var proc = require('../build/default/getrusage');
+var proc = require('getrusage');
var fs = require('fs');
-var app = require('express').createServer();
-
var count = 0;
var timer = setInterval(function() {
@@ -18,8 +16,6 @@ var timer = setInterval(function() {
}
}, 3000);
-app.listen();
-
setInterval(function() {
console.log(proc.usage());
}, 1000);

0 comments on commit a698676

Please sign in to comment.
Something went wrong with that request. Please try again.