Browse Source

Fix query duration not being displayed

Gaël Métais 11 năm trước cách đây
mục cha
commit
5dd0fa59c4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      phantomas_custom/core/scopeYLT/scopeYLT.js

+ 1 - 1
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');