- fixed bug #4517:

there was a wrong divisor for memory estimate
This commit is contained in:
Nils Thuerey 2006-07-07 14:17:08 +00:00
parent 775d3561b1
commit 10215a8ff4

@ -159,7 +159,7 @@ void calculateMemreqEstimate( int resx,int resy,int resz, int refine,
double memd = memCnt;
char *sizeStr = "";
const double sfac = 1000.0;
const double sfac = 1024.0;
if(memd>sfac){ memd /= sfac; sizeStr="KB"; }
if(memd>sfac){ memd /= sfac; sizeStr="MB"; }
if(memd>sfac){ memd /= sfac; sizeStr="GB"; }