aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Calculation of free disk space  (Read 2969 times)

lemonfan

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Calculation of free disk space
« on: January 27, 2004, 04:37:19 PM »

Hi all,

I think there is an bug in the calculation of the free disk space available for downloads, because the space needed for stopped files is subtracted from the total available space in DownloadQueue.cpp. IŽve patched the source from the cvs and now it seems to work for me. Here comes the diff:


Index: DownloadQueue.cpp
===================================================================
RCS file: /cvsroot/amule/amule-cvs/src/DownloadQueue.cpp,v
retrieving revision 1.5
diff -r1.5 DownloadQueue.cpp
1244a1245,1249
>                       }
>
>                       if (cur_file->IsStopped())
>                       {
>                               continue;


I hope, that is correct and I didnŽt miss something?

Cheers,
JT.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Calculation of free disk space
« Reply #1 on: January 28, 2004, 09:04:42 AM »

Thnaks, Thanks, Thanks.

Testing now
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Calculation of free disk space
« Reply #2 on: January 28, 2004, 09:10:43 AM »

Want to be lemonfan or JT on changelog?
Logged

lemonfan

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: Calculation of free disk space
« Reply #3 on: January 28, 2004, 10:12:54 AM »

Kry, please use my nick lemonfan.

Regards,
JT.
Logged