MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / compact_lsof_endpoint

Function compact_lsof_endpoint

packages/server/src/performance.rs:949–954  ·  view source on GitHub ↗
(line: &str)

Source from the content-addressed store, hash-verified

947}
948
949fn compact_lsof_endpoint(line: &str) -> String {
950 line.split_whitespace()
951 .skip_while(|part| *part != "TCP" && *part != "UDP")
952 .collect::<Vec<_>>()
953 .join(" ")
954}
955
956fn round_one_decimal(value: f64) -> f64 {
957 (value * 10.0).round() / 10.0

Callers 1

sample_networkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected