|
|
@ -1851,8 +1851,8 @@ bool CheckDiskSpace(uint64 nAdditionalBytes) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint64 nFreeBytesAvailable = filesystem::space(GetDataDir()).available; |
|
|
|
uint64 nFreeBytesAvailable = filesystem::space(GetDataDir()).available; |
|
|
|
|
|
|
|
|
|
|
|
// Check for 15MB because database could create another 10MB log file at any time
|
|
|
|
// Check for nMinDiskSpace bytes (currently 50MB)
|
|
|
|
if (nFreeBytesAvailable < (uint64)15000000 + nAdditionalBytes) |
|
|
|
if (nFreeBytesAvailable < nMinDiskSpace + nAdditionalBytes) |
|
|
|
{ |
|
|
|
{ |
|
|
|
fShutdown = true; |
|
|
|
fShutdown = true; |
|
|
|
string strMessage = _("Warning: Disk space is low"); |
|
|
|
string strMessage = _("Warning: Disk space is low"); |
|
|
|