diff options
| author | Philip Kaufmann <[email protected]> | 2012-05-14 07:49:17 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2012-05-14 14:02:36 +0200 |
| commit | 966ae00fe4b7c8420b6a1cfe3aa30fca4410a0e8 (patch) | |
| tree | b0bf547ddb05dc2ed5bcb04568a4e4b6293265e6 /src/main.cpp | |
| parent | Merge pull request #1291 from sipa/canonames (diff) | |
| download | discoin-966ae00fe4b7c8420b6a1cfe3aa30fca4410a0e8.tar.xz discoin-966ae00fe4b7c8420b6a1cfe3aa30fca4410a0e8.zip | |
make CheckDiskSpace() use a global static const uint64 for checking required disk space and remove 2 ugly spaces from a message string
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 20bb56e96..bd51fe306 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1845,11 +1845,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); |