Skip to content
Snippets Groups Projects
Commit 4e764369 authored by ohrensessel's avatar ohrensessel
Browse files

add overlay usage to statistics.d

parent fe2fc878
No related branches found
No related tags found
No related merge requests found
local fs = require "nixio.fs"
local opkg = require "luci.model.ipkg"
local st = fs.statvfs(opkg.overlay_root())
local used = 100*((st.blocks - st.bfree) / st.blocks) or 0
return math.floor(used * 1000 + 0.5) / 1000
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment