From fbb800a783eefffd3e674df0526d9592b0c7197e Mon Sep 17 00:00:00 2001 From: friedPotat0 <5374007+friedPotat0@users.noreply.github.com> Date: Sat, 12 Oct 2019 23:42:23 +0200 Subject: [PATCH] fix rspamd 1.47 missing time_virtual value --- data/web/js/site/debug.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data/web/js/site/debug.js b/data/web/js/site/debug.js index f2ef0dcf..0a883549 100644 --- a/data/web/js/site/debug.js +++ b/data/web/js/site/debug.js @@ -496,7 +496,10 @@ jQuery(function($){ return str }).join('
\n'); item.subject = escapeHtml(item.subject); - var scan_time = item.time_real.toFixed(3) + ' / ' + item.time_virtual.toFixed(3); + var scan_time = item.time_real.toFixed(3); + if (item.time_virtual) { + scan_time += ' / ' + item.time_virtual.toFixed(3); + } item.scan_time = { "options": { "sortValue": item.time_real