diff options
author | andre <andre> | 2000-06-12 23:40:52 +0000 |
---|---|---|
committer | andre <andre> | 2000-06-12 23:40:52 +0000 |
commit | 4225438a34504b4ce9d69aad68fc183452370984 (patch) | |
tree | a9c46a0e92d66369b57b415a75badf2906841511 | |
parent | 45cad51c70f578c59f08e6d23ef70d541b4f58d7 (diff) |
Allow a small tolerance for slow systems when testing lastlog
recording
-rw-r--r-- | logintest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/logintest.c b/logintest.c index f7e3e99a..4fc27b25 100644 --- a/logintest.c +++ b/logintest.c @@ -48,7 +48,7 @@ #include "loginrec.h" -RCSID("$Id: logintest.c,v 1.2 2000/06/04 17:07:49 andre Exp $"); +RCSID("$Id: logintest.c,v 1.3 2000/06/12 23:40:52 andre Exp $"); int nologtest = 0; @@ -175,12 +175,12 @@ int testAPI() printf("The lastlog times before and after logging in are the " "same.\nThis indicates that lastlog is ** NOT WORKING " "CORRECTLY **\n"); - else if (t0 != t2) + else if ( abs(t2-t0) >2 ) /* allow a small tolerance for slow systems */ printf("** The login time and the lastlog time differ.\n" "** This indicates that lastlog is either recording the " "wrong time,\n** or retrieving the wrong entry.\n"); else - printf("lastlog agrees with the login time. This is a good thing.\n"); + printf("lastlog seems to agree with the login time. This is a good thing.\n"); #endif |