mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
rearange the % calc to avoid float (and an ICE in gcc 3)
This commit is contained in:
parent
dbae10f979
commit
aa3442f8b0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue