summaryrefslogtreecommitdiff
path: root/src/proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/proto.c')
-rw-r--r--src/proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto.c b/src/proto.c
index 9866c0a..51eb71b 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -883,7 +883,7 @@ int proto_run(struct dht* dht, char* buff, size_t recv_len, struct sockaddr_in*
struct entry* oldest = NULL;
routing_oldest(&oldest);
while(oldest != NULL) {
- if(difftime(now, oldest->expire) < 0)
+ if(difftime(now, oldest->expire) < 0.0)
break;
struct sockaddr_in dest = {0};