[misc] ContentCacheMetrics: apply review feedback: ignore fast compiles

Co-Authored-By: Brian Gough <brian.gough@overleaf.com>
This commit is contained in:
Jakob Ackermann 2021-06-23 11:27:19 +01:00
parent a4389fb761
commit 11a44ff07c

View file

@ -36,7 +36,7 @@ function emitPdfCachingStats(stats, timings) {
? timings.compileE2E /
(timings.compileE2E - timings['compute-pdf-caching'])
: 1
if (fraction > 1.5) {
if (fraction > 1.5 && timings.compileE2E > 10 * 1000) {
logger.warn(
{
stats,