mirror of https://github.com/lcpz/lain.git
#103: revert to original fs implementation
This commit is contained in:
parent
223125b60b
commit
49221b8055
|
@ -27,7 +27,7 @@ local setmetatable = setmetatable
|
|||
local alsabar = {
|
||||
card = "0",
|
||||
channel = "Master",
|
||||
step = "5%",
|
||||
step = "2%",
|
||||
|
||||
colors = {
|
||||
background = beautiful.bg_normal,
|
||||
|
|
|
@ -66,7 +66,7 @@ local function worker(args)
|
|||
function update()
|
||||
fs_info = {}
|
||||
fs_now = {}
|
||||
local f = io.popen("LC_ALL=C df -kP " .. partition)
|
||||
local f = assert(io.popen("LC_ALL=C df -kP"))
|
||||
|
||||
for line in f:lines() do -- Match: (size) (used)(avail)(use%) (mount)
|
||||
local s = string.match(line, "^.-[%s]([%d]+)")
|
||||
|
|
Loading…
Reference in New Issue