aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Min Disk Space and 9328Kb  (Read 2035 times)

mc

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Min Disk Space and 9328Kb
« on: February 24, 2008, 03:44:40 PM »

Hi,

According to Min Disk Space[1], I shoud have at least 100MB, which I had set it to. But My available free space was 9328KB. I' using amule-svn-20080223 on a ext3 partiion of linux x86_64. I think current behavior is close to whether aMule can download this file+Min Disk Space or not.

Thanks.

[1]http://www.amule.org/wiki/index.php/Usage_Preferences#Files
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Min Disk Space and 9328Kb
« Reply #1 on: February 24, 2008, 05:38:52 PM »

I'm afraid that I don't quite understand what you're trying to say.
Logged

mc

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: Min Disk Space and 9328Kb
« Reply #2 on: February 24, 2008, 08:10:24 PM »

My aMule has downloaded files till single chunk space is remained. I think there is a unit conversion error in relevant code. But to set  a min space above  4294MB, I believe this is not enough.
Code: [Select]
--- amule-cvs-20080224/src/Preferences.h        2008-02-14 21:58:57.000000000 +0900
+++ amule-cvs-20080224-my/src/Preferences.h     2008-02-25 02:58:23.000000000 +0900
@@ -320,8 +320,8 @@

        static bool             IsCheckDiskspaceEnabled()       { return s_checkDiskspace; }
        static void             SetCheckDiskspaceEnabled(bool val)      { s_checkDiskspace = val; }
-       static uint32           GetMinFreeDiskSpace()           { return s_uMinFreeDiskSpace; }
-       static void             SetMinFreeDiskSpace(uint32 val) { s_uMinFreeDiskSpace = val; }
+       static uint32           GetMinFreeDiskSpace()           { return s_uMinFreeDiskSpace*1000000; }
+       static void             SetMinFreeDiskSpace(uint32 val) { s_uMinFreeDiskSpace = val/1000000; }

        static const wxString&  GetYourHostname()               { return s_yourHostname; }
Logged