calculate rootfs usage instead of overlayfs
in case a target does not use overlayfs
This commit is contained in:
		
							parent
							
								
									4d747c09c4
								
							
						
					
					
						commit
						fea00b3603
					
				| @ -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 |  | ||||||
| @ -0,0 +1,4 @@ | |||||||
|  | local fs = require "nixio.fs" | ||||||
|  | 
 | ||||||
|  | local st = fs.statvfs("/") | ||||||
|  | return 1 - st.bfree / st.blocks | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user