Permalink
Browse files

server os info page

  • Loading branch information...
Evangenieur committed Dec 14, 2012
1 parent 569adf1 commit 2b156b2fce2ac191116051fc2724642141aef3ae
Showing with 9 additions and 1 deletion.
  1. +1 −1 package.json
  2. +8 −0 server.coffee
View
@@ -1,6 +1,6 @@
{
"name": "hvid.io",
- "version": "0.0.0-22",
+ "version": "0.0.0-24",
"description": "RealTime Video Search Twitter / Facebook / GooglePlus",
"main": "server.coffee",
"scripts": {
View
@@ -11,6 +11,14 @@ require('zappajs') ->
@get "/": ->
@render "index"
+ @get "/info": ->
+ os = require "os"
+ @send
+ loadavg : os.loadavg()
+ uptime : os.uptime()
+ freemem : os.freemem()
+ totalmem : os.totalmem()
+
@on "search": ->
for worker in ["twitter", "facebook", "googleplus", "youtube"]

0 comments on commit 2b156b2

Please sign in to comment.