$Log$
+ Revision 570.10 2000/03/31 04:31:02 ajc
+ * Quick fix to 'stats' utility to purge records with bogus timestamps
+
Revision 570.9 2000/03/31 02:10:52 ajc
* Caved in to pressure and enabled <R>eply in public rooms.
Fri Jul 10 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Initial CVS import
+
int main(int argc, char **argv)
{
- time_t LogTime;
+ time_t LogTime, now;
unsigned int LogType;
char LogName[256];
int a, b, lowest;
"........................................................................");
get_config();
+ time(&now);
if (pc_only)
goto PC_ONLY_HERE;
LogType = atol(strtok(NULL, "|"));
strcpy(LogName, strtok(NULL, "|"));
- if (LogType != 0) {
+ if ( (LogType != 0) && (LogTime > 100L)
+ && (LogTime <= now) ) {
if ((LogTime < from) || (from == 0L))
from = LogTime;
if ((LogTime > to) || (to == 0L))