From 5dd0fa59c46d022eab2927f79811771d05d02403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Tue, 5 Aug 2014 09:55:25 +0200 Subject: [PATCH] Fix query duration not being displayed --- phantomas_custom/core/scopeYLT/scopeYLT.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phantomas_custom/core/scopeYLT/scopeYLT.js b/phantomas_custom/core/scopeYLT/scopeYLT.js index d6bd690..22af662 100644 --- a/phantomas_custom/core/scopeYLT/scopeYLT.js +++ b/phantomas_custom/core/scopeYLT/scopeYLT.js @@ -110,7 +110,7 @@ exports.module = function(phantomas) { // Save given data in the current context and jump change current context to its parent function leaveContext() { if (depth === 1 || deepAnalysis) { - currentContext.time = Date.now() - currentContext.data.timestamp; + currentContext.data.time = Date.now() - currentContext.data.timestamp; var parent = currentContext.parent; if (parent === null) { console.error('Error: trying to close root context in ContextTree');