5 lines
90 B
Plaintext
5 lines
90 B
Plaintext
local fs = require "nixio.fs"
|
|
|
|
local st = fs.statvfs("/")
|
|
return 1 - st.bfree / st.blocks
|