mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Avoid a division by zero.
Doing a cache profile on an unused cache wasn't nice.
This commit is contained in:
parent
7bfddd7ffe
commit
e3f76de898
1 changed files with 2 additions and 1 deletions
|
@ -810,7 +810,8 @@ Cache_Profile (void)
|
|||
(sizes[i] * 100) / total);
|
||||
}
|
||||
Sys_Printf ("Total allocations: %d in %d allocations, average of"
|
||||
" %d per allocation\n", total, count, total / count);
|
||||
" %d per allocation\n", total, count,
|
||||
count ? total / count : -1);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue