diff options
Diffstat (limited to 'health-controller.lua')
-rw-r--r-- | health-controller.lua | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/health-controller.lua b/health-controller.lua index f5cc26c..68f895e 100644 --- a/health-controller.lua +++ b/health-controller.lua @@ -1,26 +1,26 @@ -module (..., package.seeall) +local mymodule = {} -default_action = "system" +mymodule.default_action = "system" -- Public methods -system = function (self ) +mymodule.system = function (self ) return self.model:get_system() end -storage = function (self ) +mymodule.storage = function (self ) return self.model:get_storage() end -network = function (self ) +mymodule.network = function (self ) return self.model:get_network() end -proc = function (self ) +mymodule.proc = function (self ) return self.model:get_proc() end -networkstats = function(self) +mymodule.networkstats = function(self) local retval = self.model.get_networkstats() if self.conf.viewtype == "html" then local intf = self:new("alpine-baselayout/interfaces") @@ -34,3 +34,5 @@ networkstats = function(self) end return retval end + +return mymodule |