diff --git a/contrib/README.md b/contrib/README.md index 05a37ed..ce0bbf5 100644 --- a/contrib/README.md +++ b/contrib/README.md @@ -58,6 +58,8 @@ Supported platforms: Linux (required tools: `sysfs`) **vicious.contrib.batproc** +**vicious.contrib.countfiles** + vicious.contrib.dio - provides I/O statistics for requested storage devices - takes the disk as an argument, i.e. "sda" (or a specific diff --git a/contrib/countfiles.lua b/contrib/countfiles_all.lua similarity index 91% rename from contrib/countfiles.lua rename to contrib/countfiles_all.lua index 470d932..e8f146c 100644 --- a/contrib/countfiles.lua +++ b/contrib/countfiles_all.lua @@ -17,8 +17,9 @@ local pairs = pairs -- Be carefull with directories, who contains a mass of files. -- "find" is usally fast, but will also produce delays, if the inodes get to big. -- So if you want to count your music library, you may want to use locate/updatedb instead. -module("vicious.contrib.countfiles") +-- vicious.contrib.countfiles +local countfiles_all = {} -- {{{ Sum up widget type local function worker(format, warg) @@ -47,4 +48,4 @@ local function worker(format, warg) end -- }}} -setmetatable(_M, { __call = function(_, ...) return worker(...) end }) +setmetatable(countfiles_all, { __call = function(_, ...) return worker(...) end })