move dio widget to match new layout
This commit is contained in:
parent
e67054dfd7
commit
e787aa0d68
|
@ -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}
|
||||
|
||||
|
|
|
@ -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 })
|
Loading…
Reference in New Issue