EDM115 / unzip-bot

Telegram bot deployable to heroku that can extract every archive !
https://t.me/unzip_edm115bot
MIT License
86 stars 120 forks source link

[BUG] `sufficient_disk_space` is often wrong on different servers for an unknown reason #304

Open Divytech opened 2 months ago

Divytech commented 2 months ago

What it means and how to solve ?

EDM115 commented 2 months ago

This message is sent when the task that would be processed would leave less than 5% of disk space available.
It all comes down to this function : https://github.com/EDM115/unzip-bot/blob/47581cb27842568afb6fafcf8d79a6295a7d3a7a/unzipper/modules/commands.py#L49-L57
psutil have consistently given absolutely wrong values, and I have no fix for that. The reason why it's wrong is unknown to me.
As a quick fix, you can make this function return True all the time, although it's really a bad fix

EDM115 commented 2 months ago

[!NOTE]
This issue will stay open until I find a way to fix this shit