Fix query duration not being displayed

This commit is contained in:
Gaël Métais
2014-08-05 09:55:25 +02:00
parent 3f3e250a49
commit 5dd0fa59c4
+1 -1
View File
@@ -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');