From de5dd19297f1f1c1b5d3505ba080a7277ab1e016 Mon Sep 17 00:00:00 2001
From: Maximilian Hils <git@maximilianhils.com>
Date: Mon, 5 Feb 2018 13:52:52 +0100
Subject: [web] fix timing display for keepalive connections

see https://discourse.mitmproxy.org/t/mitmweb-details-tab-timing/848/3
---
 web/src/js/components/FlowTable/FlowColumns.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/src/js/components/FlowTable/FlowColumns.jsx')

diff --git a/web/src/js/components/FlowTable/FlowColumns.jsx b/web/src/js/components/FlowTable/FlowColumns.jsx
index 02a4fba1..e60ed487 100644
--- a/web/src/js/components/FlowTable/FlowColumns.jsx
+++ b/web/src/js/components/FlowTable/FlowColumns.jsx
@@ -119,7 +119,7 @@ export function TimeColumn({ flow }) {
     return (
         <td className="col-time">
             {flow.response ? (
-                formatTimeDelta(1000 * (flow.response.timestamp_end - flow.server_conn.timestamp_start))
+                formatTimeDelta(1000 * (flow.response.timestamp_end - flow.request.timestamp_start))
             ) : (
                 '...'
             )}
-- 
cgit v1.2.3

