Skip to content

Commit

Permalink
Update to work with current node and express versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ptribble committed Apr 20, 2014
1 parent 190145f commit c6f9473
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/jkstat.js
Expand Up @@ -6,7 +6,7 @@
var express = require('express');
var kstat = require('kstat');

var app = module.exports = express.createServer();
var app = express();

var staticfilter = {};
var staticreader = new kstat.Reader(staticfilter);
Expand Down Expand Up @@ -103,6 +103,6 @@ app.get('/kstat/getkcid', function(req, res){
// Only listen on $ node app.js

if (!module.parent) {
app.listen(3000);
console.log("jkstat server http://hostname:%d/kstat running", app.address().port);
var server = app.listen(3000);
console.log("jkstat server http://hostname:%d/kstat running", server.address().port);
}
2 changes: 2 additions & 0 deletions kstat.cc
Expand Up @@ -797,3 +797,5 @@ init (Handle<Object> target)
{
KStatReader::Initialize(target);
}

NODE_MODULE(kstat, init);
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "kstat",
"version": "0.0.2",
"version": "0.4.0",
"description": "Solaris libkstat bindings",
"homepage": "https://github.com/ptribble/node-kstat",
"author": "Peter Tribble",
Expand Down

0 comments on commit c6f9473

Please sign in to comment.