mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-04-03 01:18:59 +02:00
With this commit we rename the existing AvailableDiskSpace function to its correct name AvailableDiskSpaceRatio as it only returns a ratio. We then go ahead and add a new function that returns the actual number of free bytes available on a file system. This also fixes some comments and always returns an error instead of panicking.