aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: show total size left to transfer  (Read 5462 times)

Absurdität

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
show total size left to transfer
« 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 ?
Logged

Absurdität

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: show total size left to transfer
« Reply #1 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
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: show total size left to transfer
« Reply #2 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!
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: show total size left to transfer
« Reply #3 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.
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: show total size left to transfer
« Reply #4 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.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: show total size left to transfer
« Reply #5 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.
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: show total size left to transfer
« Reply #6 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.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: show total size left to transfer
« Reply #7 on: March 23, 2008, 11:43:23 PM »

Both true.
Logged