This commit is contained in:
Bookug Lobert 2016-01-25 23:31:32 +08:00
parent f3a6556c27
commit 2b220d8c7f
1 changed files with 8 additions and 1 deletions

View File

@ -50,8 +50,15 @@ Stream::open(bool _isBstr)
#ifdef DEBUG_PRECISE
//printf("Stream:this is for Bstr\n");
#endif
if(Util::memUsedPercentage() > 85)
if(Util::memUsedPercentage() > 90)
{
this->inMem = false;
printf("Stream: memory is not enough!\n");
}
else
{
printf("Stream: memory is enough!\n");
}
#ifdef DEBUG_PRECISE
//printf("Stream:after memUsedPercentage\n");
#endif