aMule Forum

English => Feature requests => Topic started by: Absurdität on February 23, 2008, 05:01:15 PM

Title: show total size left to transfer
Post by: Absurdität on February 23, 2008, 05:01:15 PM
Hail everybody
Here is the idea : When I download some really big files ( I do musical project by internet )  I have hard times knowing if everything will have enough space on hard disk ( I enabled the option to left 5Gb free on hard disk but it's not the point )
Since files are downloaded chunck by chunck I never know how much MBytes will there be more on hard disk when downloads will be finished
I bet this shouldn't be too hard to program ( it just need to add size rmaining for each file ). Can I hope to see this in aMule 2.2.0 ?
Title: Re: show total size left to transfer
Post by: Absurdität on March 21, 2008, 10:10:58 AM
No answer  ???
I may be a bit noob but I don't think it's neither one of the Features not to request nor an already implemented feature nor an already discussed one
So please answer me
Title: Re: show total size left to transfer
Post by: skolnick on March 22, 2008, 01:17:20 AM
yep, I would also like this added to the statistics tree, just like eMule has. I have no clue if it's difficult or not (I hope not :) ) but it would be really useful. This is maybe the only eMule feature I miss on aMule.

Thanks!
Title: Re: show total size left to transfer
Post by: Xaignar on March 22, 2008, 01:39:45 PM
Actually, we need to show the total size left to allocate, not transfer, which is a bit more complicated.
However, I'll take a look at it.
Title: Re: show total size left to transfer
Post by: skolnick on March 22, 2008, 09:01:16 PM
Yeah Xaignar, you are right. I think it's harder to implement because of the different filesystems aMule has to support (NTFS, ext2/3, FAT, etc). But thanks for thinking about this posibility.

Regards.
Title: Re: show total size left to transfer
Post by: Kry on March 23, 2008, 01:23:14 PM
No, he was talking about something different actually. That amount of space the partially downloaded file takes is the position of the last data that was saved in the file for transfer.
Title: Re: show total size left to transfer
Post by: Xaignar on March 23, 2008, 02:13:16 PM
Hm?
Given that we want the needed amount of free disk-space, we'll have to look at how much is actually allocated. On *nix with a filesystem supporting sparse files, that does not correspond to the position of the last write. However, you can get the number of allocated blocks by using stat, which on *nix returns the number of allocated 512b blocks in the variable st_blocks.
Title: Re: show total size left to transfer
Post by: Kry on March 23, 2008, 11:43:23 PM
Both true.