mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:47:44 +00:00
Kernel: Make kgettimeofday use AK::Time
This commit is contained in:
parent
05d5e3fad9
commit
336303bda4
11 changed files with 28 additions and 26 deletions
|
@ -193,7 +193,8 @@ void NetworkAdapter::did_receive(ReadonlyBytes payload)
|
|||
}
|
||||
}
|
||||
|
||||
m_packet_queue.append({ buffer.value(), kgettimeofday() });
|
||||
// FIXME: Should use AK::Time internally
|
||||
m_packet_queue.append({ buffer.value(), kgettimeofday().to_timeval() });
|
||||
|
||||
if (on_receive)
|
||||
on_receive();
|
||||
|
|
|
@ -238,7 +238,8 @@ void TCPSocket::send_outgoing_packets()
|
|||
auto routing_decision = route_to(peer_address(), local_address(), bound_interface());
|
||||
VERIFY(!routing_decision.is_zero());
|
||||
|
||||
auto now = kgettimeofday();
|
||||
// FIXME: Should use AK::Time internally
|
||||
auto now = kgettimeofday().to_timeval();
|
||||
|
||||
LOCKER(m_not_acked_lock, Lock::Mode::Shared);
|
||||
for (auto& packet : m_not_acked) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue