summaryrefslogtreecommitdiff
path: root/src/lib/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r--src/lib/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index 31941afd..c5667f06 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -1084,7 +1084,7 @@ static int flow_keepalive(int fd)
return -EFLOWPEER;
}
- if (ts_diff_ns(&s_act, &now) > (timeo >> 2) * MILLION)
+ if (ts_diff_ns(&s_act, &now) > (timeo * MILLION) >> 2)
flow_send_keepalive(fd);
return 0;