| ▲ | yoavm 4 hours ago | ||||||||||||||||
You configure Levin to "always leave 2GB available". Levin checks the available diskspace using a simple statvfs call, deducts 2GB, and sees that as its budget. It then checks your diskspace every minute (more or less, depending on the device) to see if anything changes. If more free space is suddenly available, it will download more content. If there's less than 2GB available, it will immediately start deleting its own files until 2GB are free. | |||||||||||||||||
| ▲ | filleduchaos 2 hours ago | parent | next [-] | ||||||||||||||||
Out of curiosity, how much RAM do you have and have you tested this on a computer that does not have as much? Asking because this sounds like a mini-disaster in the making with e.g. macOS' swap and a device with 16GB or even 8GB of RAM. | |||||||||||||||||
| |||||||||||||||||
| ▲ | throw10920 4 hours ago | parent | prev [-] | ||||||||||||||||
That's a neat hack, thank you for sharing. | |||||||||||||||||