Skip to content

Commit

Permalink
Merge pull request #2226 from threefoldtech/development_fix_iperf_res…
Browse files Browse the repository at this point in the history
…ults

Slice Iperf array to contain only 4 elemnts max
  • Loading branch information
zaelgohary authored Feb 22, 2024
2 parents 9280a08 + 0bb3d3a commit edc4bf8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@ export default {
.filter(
(node: any) => node.download_speed && node.upload_speed && !node.error && node.node_id !== props.node.nodeId,
)
.slice(0, 4)
.map(node => ({
name: node.test_type.toLocaleUpperCase(),
type: isIPv4(node.node_ip) ? "IPv4" : "IPv6",
downloadSpeed: format(node.download_speed),
uploadSpeed: format(node.upload_speed),
}));
IperfDetails.value = array;
return IperfDetails.value;
};
Expand Down

0 comments on commit edc4bf8

Please sign in to comment.