Skip to content

Commit be66169

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent a4b81bb commit be66169

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Source/NETworkManager/Controls/LiveChartsWiFiChannelTooltip.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ public void Show(IEnumerable<ChartPoint> tooltipPoints, Chart chart)
5757
continue;
5858

5959
var ssid = network.IsHidden ? Strings.HiddenNetwork : network.AvailableNetwork.Ssid;
60+
var widthText = network.ChannelBandwidth > 0 ? $"{network.ChannelBandwidth} MHz" : "-/-";
6061
var detail =
61-
$"{network.AvailableNetwork.NetworkRssiInDecibelMilliwatts} dBm · {Strings.Channel} {network.Channel} · {network.ChannelBandwidth} MHz";
62+
$"{network.AvailableNetwork.NetworkRssiInDecibelMilliwatts} dBm · {Strings.Channel} {network.Channel} · {Strings.ChannelWidth} {widthText}";
6263

6364
TooltipEntries.Add(new TooltipEntry(SkColorToBrush(GetSeriesColor(point)), ssid, detail));
6465
}

0 commit comments

Comments
 (0)