Show the suspended status when we start a packet capture on the link.

This commit is contained in:
Rajnikant
2022-03-25 11:34:55 +05:30
parent c2410f0933
commit 9558b2137f
2 changed files with 3 additions and 4 deletions

View File

@ -52,13 +52,13 @@ export class InterfaceStatusWidget implements Widget {
new LinkStatus( new LinkStatus(
start_point.x, start_point.x,
start_point.y, start_point.y,
!l.capturing && l.suspend ? 'suspended' : l.source.status, (( !l.capturing && l.suspend) || ( l.capturing && l.suspend)) ? 'suspended' : l.source.status,
sourcePort sourcePort
), ),
new LinkStatus( new LinkStatus(
end_point.x, end_point.x,
end_point.y, end_point.y,
!l.capturing && l.suspend ? 'suspended' : l.target.status, (( !l.capturing && l.suspend) || ( l.capturing && l.suspend)) ? 'suspended' : l.target.status,
destinationPort destinationPort
), ),
]; ];

View File

@ -110,8 +110,7 @@ export class LinkWidget implements Widget {
link_body link_body
.filter((l) => { .filter((l) => {
return ( return (
!l.capturing && ((!l.capturing && l.suspend)|| l.capturing && l.suspend) &&
l.suspend &&
!(l.filters.bpf || l.filters.corrupt || l.filters.delay || l.filters.frequency_drop || l.filters.packet_loss) !(l.filters.bpf || l.filters.corrupt || l.filters.delay || l.filters.frequency_drop || l.filters.packet_loss)
); );
}) })