move countfiles widget to match new layout

This commit is contained in:
Jörg Thalheim 2017-01-25 19:51:05 +01:00
parent c8c9cf690b
commit e67054dfd7
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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 })