top | item 47061883

(no title)

throw10920 | 11 days ago

How does Levin "use the diskspace you don't use"? That sounds like a neat feature but I'm not aware of any APIs for that on desktop platforms.

discuss

order

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

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|11 days ago

That's a neat hack, thank you for sharing.