mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 08:27:39 +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);
|
(sizes[i] * 100) / total);
|
||||||
}
|
}
|
||||||
Sys_Printf ("Total allocations: %d in %d allocations, average of"
|
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
|
static void
|
||||||
|
|
Loading…
Reference in a new issue