rearange the % calc to avoid float (and an ICE in gcc 3)

This commit is contained in:
Bill Currie 2001-08-29 01:20:30 +00:00
parent dbae10f979
commit aa3442f8b0

View file

@ -892,7 +892,7 @@ Cache_Profile (void)
Con_Printf ("%8d %8d %8d %8d %7d%%\n",
items[i], 1 << i, (1 << (i + 1)) - 1,
sizes[i] / items[i],
(int) (sizes[i] / (float) total * 100));
(sizes[i] * 100) / total);
}
Con_Printf ("Total allocations: %d in %d allocations, average of"
" %d per allocation\n", total, count, total / count);