diff options
| author | Gavin Andresen <[email protected]> | 2012-05-19 05:48:48 -0700 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2012-05-19 05:48:48 -0700 |
| commit | 973ca019bce58fab7a100b08381050ad2c5eb3ef (patch) | |
| tree | 22bda502cb448728c52233a5887d957d72e1e7b2 /src/main.cpp | |
| parent | Merge pull request #1289 from Diapolo/Bitcoin_as_noun (diff) | |
| parent | make CheckDiskSpace() use a global static const uint64 for checking required ... (diff) | |
| download | discoin-973ca019bce58fab7a100b08381050ad2c5eb3ef.tar.xz discoin-973ca019bce58fab7a100b08381050ad2c5eb3ef.zip | |
Merge pull request #1296 from Diapolo/CheckDiskSpace
make CheckDiskSpace() use 50 * 1024 * 1024 Bytes
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index e19d0e4de..8ff6d6fec 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1851,11 +1851,11 @@ bool CheckDiskSpace(uint64 nAdditionalBytes) { uint64 nFreeBytesAvailable = filesystem::space(GetDataDir()).available; - // Check for 15MB because database could create another 10MB log file at any time - if (nFreeBytesAvailable < (uint64)15000000 + nAdditionalBytes) + // Check for nMinDiskSpace bytes (currently 50MB) + if (nFreeBytesAvailable < nMinDiskSpace + nAdditionalBytes) { fShutdown = true; - string strMessage = _("Warning: Disk space is low "); + string strMessage = _("Warning: Disk space is low"); strMiscWarning = strMessage; printf("*** %s\n", strMessage.c_str()); ThreadSafeMessageBox(strMessage, "Bitcoin", wxOK | wxICON_EXCLAMATION | wxMODAL); |