Closed deluxghost closed 1 year ago
You're absolute right, it doesn't make sense. It's maybe an heritage
This is correct and i'm commiting the fix.
exec(`df -h ${path} | tail -1 | awk '{print $4}'`, (_, stdout) => {
socket.emit(message, stdout)
})
Where path
is the download directory by default.
https://github.com/marcopeocchi/yt-dlp-web-ui/blob/8ee9710fe2d091f6d09a2d4e3064b156bdd3e3b5/server/src/utils/procUtils.ts#L47
Looks like you always fetch the last line of
df
output, which doesn't make any sense, for example:you will get
7.8G