mirror of https://github.com/lcpz/lain.git
Merge pull request #39 from klaernie/fix-df
ask df for a specific filesystem
This commit is contained in:
commit
da2c1cb778
|
@ -67,7 +67,7 @@ local function worker(args)
|
|||
fs_info = {}
|
||||
fs_now = {}
|
||||
|
||||
local f = io.popen("LC_ALL=C df -kP")
|
||||
local f = io.popen("LC_ALL=C df -kP " .. partition)
|
||||
|
||||
for line in f:lines() do -- Match: (size) (used)(avail)(use%) (mount)
|
||||
local s = string.match(line, "^.-[%s]([%d]+)")
|
||||
|
|
Loading…
Reference in New Issue