diff options
-rw-r--r-- | logintest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/logintest.c b/logintest.c index f7e3e99a4..4fc27b25b 100644 --- a/logintest.c +++ b/logintest.c | |||
@@ -48,7 +48,7 @@ | |||
48 | 48 | ||
49 | #include "loginrec.h" | 49 | #include "loginrec.h" |
50 | 50 | ||
51 | RCSID("$Id: logintest.c,v 1.2 2000/06/04 17:07:49 andre Exp $"); | 51 | RCSID("$Id: logintest.c,v 1.3 2000/06/12 23:40:52 andre Exp $"); |
52 | 52 | ||
53 | 53 | ||
54 | int nologtest = 0; | 54 | int nologtest = 0; |
@@ -175,12 +175,12 @@ int testAPI() | |||
175 | printf("The lastlog times before and after logging in are the " | 175 | printf("The lastlog times before and after logging in are the " |
176 | "same.\nThis indicates that lastlog is ** NOT WORKING " | 176 | "same.\nThis indicates that lastlog is ** NOT WORKING " |
177 | "CORRECTLY **\n"); | 177 | "CORRECTLY **\n"); |
178 | else if (t0 != t2) | 178 | else if ( abs(t2-t0) >2 ) /* allow a small tolerance for slow systems */ |
179 | printf("** The login time and the lastlog time differ.\n" | 179 | printf("** The login time and the lastlog time differ.\n" |
180 | "** This indicates that lastlog is either recording the " | 180 | "** This indicates that lastlog is either recording the " |
181 | "wrong time,\n** or retrieving the wrong entry.\n"); | 181 | "wrong time,\n** or retrieving the wrong entry.\n"); |
182 | else | 182 | else |
183 | printf("lastlog agrees with the login time. This is a good thing.\n"); | 183 | printf("lastlog seems to agree with the login time. This is a good thing.\n"); |
184 | 184 | ||
185 | #endif | 185 | #endif |
186 | 186 | ||