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.
yoavm|11 days ago
filleduchaos|11 days ago
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|11 days ago