Permalink
Browse files

cleaned up the commends, added license

  • Loading branch information...
1 parent a9602f1 commit 1e8a1ba453c4fd476a2657a2e1b6af0c0d3d06cd @gflarity committed Feb 8, 2011
Showing with 19 additions and 3 deletions.
  1. +19 −0 LICENSE
  2. +0 −3 heat_tracer.js
View
19 LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2011 Geoff Flarity
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
View
@@ -3,7 +3,6 @@ var libdtrace = require('libdtrace');
var io = require('socket.io');
var express = require('express');
-
/* create our express server and prepare to serve javascript files in ./public
*/
var app = express.createServer();
@@ -12,7 +11,6 @@ app.configure(function(){
});
-
/* Before we go any further we must realize that each time a user connects we're going to want to
them send them dtrace aggregation every second. We can do so using 'setInterval', but we must
keep track of both the intervals we set and the dtrace consumers that are created as we'll need
@@ -26,7 +24,6 @@ var dtp_by_session_id = {};
*/
var websocket_server = io.listen(app);
-
/* Now that we have a web socket server, we need to create a handler for connection events. These
events represet a client connecting to our server */
websocket_server.on('connection', function(socket) {

0 comments on commit 1e8a1ba

Please sign in to comment.