From 2ccab8627362bf69336034d1bb10ebd827767f8f Mon Sep 17 00:00:00 2001 From: Karchnu Date: Fri, 12 Jun 2020 02:05:42 +0200 Subject: [PATCH] Float64 timers. --- src/ipc/connection.cr | 4 ++-- src/ipc/lowlevel.cr | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ipc/connection.cr b/src/ipc/connection.cr index fea663f..87e1ffb 100644 --- a/src/ipc/connection.cr +++ b/src/ipc/connection.cr @@ -104,8 +104,8 @@ class IPC::StandAloneConnection end class IPC::Connections - property base_timer : Int64 = 0 - property timer : Int64 = 0 + property base_timer : Float64 = 0.0 + property timer : Float64 = 0.0 getter connections : LibIPC::Connections def initialize diff --git a/src/ipc/lowlevel.cr b/src/ipc/lowlevel.cr index ecd75fc..6a6b0a7 100644 --- a/src/ipc/lowlevel.cr +++ b/src/ipc/lowlevel.cr @@ -72,7 +72,7 @@ lib LibIPC fun ipc_read(Connection*, Message*) : IPCError fun ipc_write(Connection*, Message*) : IPCError - fun ipc_wait_event(Connections*, Connection*, Event*, LibC::Long*) : IPCError + fun ipc_wait_event(Connections*, Connection*, Event*, LibC::Double*) : IPCError fun ipc_add(Connections*, Connection*) : IPCError fun ipc_del(Connections*, Connection*) : IPCError @@ -90,7 +90,7 @@ lib LibIPC # networkd-related functions - fun ipc_wait_event_networkd(Connections*, Connection*, Event*, Switchings*, LibC::Long*) : IPCError + fun ipc_wait_event_networkd(Connections*, Connection*, Event*, Switchings*, LibC::Double*) : IPCError fun ipc_receive_fd (sock : LibC::Int, fd : LibC::Int*) : IPCError fun ipc_provide_fd (sock : LibC::Int, fd : LibC::Int ) : IPCError