From 81cd320928717fa21c137720cbceb506fc0f9832 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 2 Feb 2020 02:09:34 +0000 Subject: [PATCH] don't trigger traces for slow uploads --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 11b41c9a..8be28854 100644 --- a/index.php +++ b/index.php @@ -152,7 +152,7 @@ try { $_tracer->end(); if (TRACE_FILE) { - if ((microtime(true) - $_shm_load_start) > TRACE_THRESHOLD) { + if ((microtime(true) - $_shm_load_start) > TRACE_THRESHOLD && $_SERVER["REQUEST_URI"] != "/upload") { $_tracer->flush(TRACE_FILE); } }