aMule Forum

English => en_Bugs => Topic started by: mc on February 24, 2008, 03:44:40 PM

Title: Min Disk Space and 9328Kb
Post by: mc 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
Title: Re: Min Disk Space and 9328Kb
Post by: Xaignar on February 24, 2008, 05:38:52 PM
I'm afraid that I don't quite understand what you're trying to say.
Title: Re: Min Disk Space and 9328Kb
Post by: mc 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; }