get better the speed of network

This commit is contained in:
Cayo Puigdefabregas 2025-02-19 18:21:29 +01:00
parent 72f359df87
commit 509c54e5d8

View file

@ -298,13 +298,17 @@ class ParseSnapshot:
if get_inxi(n, "type") == "USB":
interface = "USB"
speed = get_inxi(iface, "speed")
if not speed:
speed = get_inxi(n, "speed")
self.components.append(
{
"type": "NetworkAdapter",
"model": model,
"manufacturer": get_inxi(n, 'vendor'),
"serialNumber": get_inxi(iface, 'mac'),
"speed": get_inxi(n, "speed"),
"speed": speed,
"interface": interface,
}
)