in the world of printf, %f uses type (double) internally, not float, so might as well use double to work the math for this log entry. :)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3387 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2010-07-04 11:33:10 +00:00
parent 4352a3927c
commit d2d6fd2964
1 changed files with 3 additions and 3 deletions

View File

@ -219,10 +219,10 @@ _mVUt _f microProgram* mVUcreateProg(int startPC) {
prog->ranges = new deque<microRange>();
prog->startPC = startPC;
mVUcacheProg<vuIndex>(*prog); // Cache Micro Program
float cacheSize = (float)((u32)mVU->prog.x86end - (u32)mVU->prog.x86start);
float cacheUsed =((float)((u32)mVU->prog.x86ptr - (u32)mVU->prog.x86start)) / cacheSize * 100;
double cacheSize = (double)((u32)mVU->prog.x86end - (u32)mVU->prog.x86start);
double cacheUsed =((double)((u32)mVU->prog.x86ptr - (u32)mVU->prog.x86start)) / cacheSize * 100;
ConsoleColors c = vuIndex ? Color_Orange : Color_Magenta;
Console.WriteLn(c, "microVU%d: Cached MicroPrograms = [%03d] [PC=%04x] [List=%02d] (Cache = %f%%)",
Console.WriteLn(c, "microVU%d: Cached MicroPrograms = [%03d] [PC=%04x] [List=%02d] (Cache = %3.3f%%)",
vuIndex, prog->idx, startPC, mVU->prog.prog[startPC].list->size()+1, cacheUsed);
return prog;
}