move dio widget to match new layout

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

View File

@ -60,11 +60,15 @@ Supported platforms: Linux (required tools: `sysfs`)
**vicious.contrib.countfiles**
vicious.contrib.dio
- provides I/O statistics for requested storage devices
**vicious.contrib.dio**
Provides I/O statistics for requested storage devices
- Arguments:
- takes the disk as an argument, i.e. "sda" (or a specific
partition, i.e. "sda/sda2")
- returns a table with string keys: {total_s}, {total_kb}, {total_mb},
- Returns:
- a table with string keys: {total_s}, {total_kb}, {total_mb},
{read_s}, {read_kb}, {read_mb}, {write_s}, {write_kb}, {write_mb}
and {sched}

View File

@ -14,7 +14,7 @@ local helpers = require("vicious.helpers")
-- Disk I/O: provides I/O statistics for requested storage devices
-- vicious.contrib.dio
local dio = {}
local dio_linux = {}
-- Initialize function tables
@ -70,4 +70,4 @@ local function worker(format, disk)
end
-- }}}
return setmetatable(dio, { __call = function(_, ...) return worker(...) end })
return setmetatable(dio_linux, { __call = function(_, ...) return worker(...) end })