From e67054dfd7c7764bb8180539ea2630c8fcd56e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 25 Jan 2017 19:51:05 +0100 Subject: [PATCH] move countfiles widget to match new layout --- contrib/README.md | 2 ++ contrib/{countfiles.lua => countfiles_all.lua} | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) rename contrib/{countfiles.lua => countfiles_all.lua} (91%) 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 })