Merge pull request #65 from ohrensessel/overlayusage

add overlay usage to statistics.d
This commit is contained in:
Nils Schneider 2014-08-18 14:12:30 +02:00
commit 817aff13c4
1 changed files with 4 additions and 0 deletions

View File

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