gluon/package/gluon-announce/files/lib/gluon/announce/statistics.d/rootfs_usage
ohrensessel fea00b3603 calculate rootfs usage instead of overlayfs
in case a target does not use overlayfs
2014-08-18 14:07:23 +02:00

5 lines
90 B
Plaintext

local fs = require "nixio.fs"
local st = fs.statvfs("/")
return 1 - st.bfree / st.blocks