Skip to content

Commit

Permalink
Merge pull request #241 from Lyt99/fix/flow
Browse files Browse the repository at this point in the history
fix(webui): fix flow namespace selector & link label
  • Loading branch information
BSWANG authored Apr 9, 2024
2 parents 8068dbf + d7d0acb commit afbd7e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ const nodeLabel = (n) => {

const linkLabel = (l) => {
const label = [
`Connection(s): ${l.edges.length}`,
`Send Packets: ${l.edges.reduce((a, b) => a + b.packets, 0)}`,
`Send Byte(s): ${l.edges.reduce((a, b) => a + b.bytes, 0)}`,
`Dropped Packet(s): ${l.edges.reduce((a, b) => a + b.dropped, 0)}`,
Expand Down
2 changes: 1 addition & 1 deletion webui/src/pages/monitoring/flow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { definePageConfig } from "ice";
const getNamespaces = (data: any) => {
return data.nodes.map((node: any) => {
return node.namespace || 'default'
})
}).filter((v, i, a) => a.indexOf(v) === i).sort()
}

const filterFlowData = (data: FlowData, namespaces: string[], nodes: string[], showSeparate: boolean) => {
Expand Down

0 comments on commit afbd7e8

Please sign in to comment.