calculate rootfs usage instead of overlayfs

in case a target does not use overlayfs
This commit is contained in:
ohrensessel 2014-08-18 14:07:23 +02:00
parent 9bb443c6a6
commit 5821b5b998
2 changed files with 4 additions and 5 deletions

View File

@ -1,5 +0,0 @@
local fs = require "nixio.fs"
local opkg = require "luci.model.ipkg"
local st = fs.statvfs(opkg.overlay_root())
return 1 - st.bfree / st.blocks

View File

@ -0,0 +1,4 @@
local fs = require "nixio.fs"
local st = fs.statvfs("/")
return 1 - st.bfree / st.blocks