mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Fixed Duration on list view
- Set min size to 100 for table view
This commit is contained in:
parent
94ca23b782
commit
c02d515b2a
@ -345,7 +345,8 @@ def raw_format_list(f):
|
|||||||
if f["resp_ctype"]:
|
if f["resp_ctype"]:
|
||||||
resp.append(fcol(f["resp_ctype"], rc))
|
resp.append(fcol(f["resp_ctype"], rc))
|
||||||
resp.append(fcol(f["resp_clen"], rc))
|
resp.append(fcol(f["resp_clen"], rc))
|
||||||
resp.append(fcol(f["duration"], rc))
|
pretty_duration = human.pretty_duration(f["duration"])
|
||||||
|
resp.append(fcol(pretty_duration, rc))
|
||||||
|
|
||||||
elif f["err_msg"]:
|
elif f["err_msg"]:
|
||||||
resp.append(fcol(SYMBOL_RETURN, "error"))
|
resp.append(fcol(SYMBOL_RETURN, "error"))
|
||||||
@ -557,7 +558,7 @@ def format_flow(f, focus, extended=False, hostheader=False, cols=False, layout='
|
|||||||
duration=duration,
|
duration=duration,
|
||||||
))
|
))
|
||||||
|
|
||||||
if ((layout == 'default' and cols < 80) or layout == "list"):
|
if ((layout == 'default' and cols < 100) or layout == "list"):
|
||||||
return raw_format_list(tuple(sorted(d.items())))
|
return raw_format_list(tuple(sorted(d.items())))
|
||||||
else:
|
else:
|
||||||
return raw_format_table(tuple(sorted(d.items())))
|
return raw_format_table(tuple(sorted(d.items())))
|
||||||
|
Loading…
Reference in New Issue
Block a user