Leaderboard

Popular Content

Showing content with the highest reputation on 10/05/20 in Report Comments

  1. Actually it's not. 3.6M + 930G is not equal 1.4T Up to and including beta29 code uses 'stat -f', ie, statvfs(), to fetch Total, Free, and Available. In all file systems other than btrfs Free==Available. What's used by webGUI is only Total and Free, it gets Used = Total - Free (like any reasonable person would think it should work). Starting with next release, emhttpd exports fsSize - same as 'size' reported by 'df' and 'Total' reported by 'stat -f' (f_blocks) fsFree - same as 'avail' reported by 'df' and 'Available' reported by 'stat -f' (f_bavail) fsUsed= same as 'used' reported by 'df' and 'Total'-'Free' reported by 'stat -f' (f_blocks - f_bfree) - note this is how 'df' calculates 'used'. Seems to work except there are cases where "Used" + "Free" displayed on Main do not equal "Size".
    1 point