From 3bba3fd737937b3975ae720b3d2710910214ec80 Mon Sep 17 00:00:00 2001 From: Frank Lahm Date: Wed, 23 Feb 2011 10:40:32 +0100 Subject: [PATCH] Fix comparison --- etc/afpd/afp_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/afpd/afp_dsi.c b/etc/afpd/afp_dsi.c index 2f810a72..7bb4bbc6 100644 --- a/etc/afpd/afp_dsi.c +++ b/etc/afpd/afp_dsi.c @@ -282,7 +282,7 @@ static void alarm_handler(int sig _U_) dsi->tickle++; if (dsi->flags & DSI_SLEEPING) { - if (dsi->tickle < AFPobj->options.sleep) { + if (dsi->tickle > AFPobj->options.sleep) { LOG(log_error, logtype_afpd, "afp_alarm: sleep time ended"); afp_dsi_die(EXITERR_CLNT); } -- 2.39.2