Skip to content

Commit

Permalink
sleep: use TimeT to initialize TimeVal
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Dec 27, 2018
1 parent 20a01dd commit ca3452b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crystal/event.cr
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct Crystal::Event

def add(timeout : Time::Span)
add LibC::Timeval.new(
tv_sec: timeout.total_seconds.to_i,
tv_sec: LibC::TimeT.new(timeout.total_seconds),
tv_usec: timeout.nanoseconds / 1_000
)
end
Expand Down

0 comments on commit ca3452b

Please sign in to comment.