Skip to content

Commit e816063

Browse files
committed
fixup! Attempt to pick the fastest network interface for workers
1 parent cccbc7e commit e816063

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/network_interfaces.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct Interface
5656
# These two fields are taken from the sysfs /type and /speed files if available:
5757
# https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net
5858
type::Union{ARPHardware, Nothing}
59-
speed::Union{Int, Nothing}
59+
speed::Union{Float64, Nothing}
6060
end
6161

6262
function _get_interfaces(
@@ -115,7 +115,7 @@ function _get_interfaces(
115115
speed = nothing
116116
if isfile(speed_path)
117117
try
118-
reported_speed = parse(Int, read(speed_path, String))
118+
reported_speed = parse(Float64, read(speed_path, String))
119119
if reported_speed > 0
120120
speed = reported_speed
121121
end

0 commit comments

Comments
 (0)