From 5136d5495b6b7a65c7416a887dab098d4e66fda8 Mon Sep 17 00:00:00 2001 From: william Date: Fri, 5 Feb 2016 23:32:36 -0500 Subject: [PATCH] runner --- lxc.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lxc.js b/lxc.js index c392780..71ff40f 100644 --- a/lxc.js +++ b/lxc.js @@ -22,13 +22,13 @@ var Container = function(config){ Container.prototype.autoShutDown = function(time) { time = time || 600000; - this.__shutDownTimeout = setTimeout(function(){}, this.autoShutDown): + // this.__shutDownTimeout = setTimeout(function(){}, this.autoShutDown): }; var lxcORM = function(){ var orm = {} lxc.list(function(data){ - for(var idx = data.length; idx--){ + for(var idx = data.length; idx--;){ orm[data[idx].name] = new Container(data); } }); @@ -133,3 +133,6 @@ var lxc = { }; module.exports = lxc; + +var orm = lxcORM() +setTimeout(function(){})