]> arthur.barton.de Git - netatalk.git/commitdiff
Fix comparison
authorFrank Lahm <franklahm@googlemail.com>
Wed, 23 Feb 2011 09:40:32 +0000 (10:40 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Wed, 23 Feb 2011 09:40:32 +0000 (10:40 +0100)
etc/afpd/afp_dsi.c

index 2f810a721e8a53d3fca96f833264671597dd00d4..7bb4bbc6fd18c658cf45fd83aea38fb26dda52dd 100644 (file)
@@ -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);
         }