move countfiles widget to match new layout
This commit is contained in:
parent
c8c9cf690b
commit
e67054dfd7
|
@ -58,6 +58,8 @@ Supported platforms: Linux (required tools: `sysfs`)
|
||||||
|
|
||||||
**vicious.contrib.batproc**
|
**vicious.contrib.batproc**
|
||||||
|
|
||||||
|
**vicious.contrib.countfiles**
|
||||||
|
|
||||||
vicious.contrib.dio
|
vicious.contrib.dio
|
||||||
- provides I/O statistics for requested storage devices
|
- provides I/O statistics for requested storage devices
|
||||||
- takes the disk as an argument, i.e. "sda" (or a specific
|
- takes the disk as an argument, i.e. "sda" (or a specific
|
||||||
|
|
|
@ -17,8 +17,9 @@ local pairs = pairs
|
||||||
-- Be carefull with directories, who contains a mass of files.
|
-- 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.
|
-- "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.
|
-- 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
|
-- {{{ Sum up widget type
|
||||||
local function worker(format, warg)
|
local function worker(format, warg)
|
||||||
|
@ -47,4 +48,4 @@ local function worker(format, warg)
|
||||||
end
|
end
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
setmetatable(_M, { __call = function(_, ...) return worker(...) end })
|
setmetatable(countfiles_all, { __call = function(_, ...) return worker(...) end })
|
Loading…
Reference in New Issue