We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cccbc7e commit e816063Copy full SHA for e816063
src/network_interfaces.jl
@@ -56,7 +56,7 @@ struct Interface
56
# These two fields are taken from the sysfs /type and /speed files if available:
57
# https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net
58
type::Union{ARPHardware, Nothing}
59
- speed::Union{Int, Nothing}
+ speed::Union{Float64, Nothing}
60
end
61
62
function _get_interfaces(
@@ -115,7 +115,7 @@ function _get_interfaces(
115
speed = nothing
116
if isfile(speed_path)
117
try
118
- reported_speed = parse(Int, read(speed_path, String))
+ reported_speed = parse(Float64, read(speed_path, String))
119
if reported_speed > 0
120
speed = reported_speed
121
0 commit comments