version 1.32, 2000/06/12 17:41:21 |
version 1.33, 2000/06/14 22:55:19 |
|
|
int verbose = 0; /* Print out what's going on */ |
int verbose = 0; /* Print out what's going on */ |
int needroot = 1; /* Root privs are necessary */ |
int needroot = 1; /* Root privs are necessary */ |
int noaction = 0; /* Don't do anything, just show it */ |
int noaction = 0; /* Don't do anything, just show it */ |
int monitor = 0; /* Don't do monitoring by default */ |
int monitormode = 0; /* Don't do monitoring by default */ |
char *conf = CONF; /* Configuration file to use */ |
char *conf = CONF; /* Configuration file to use */ |
time_t timenow; |
time_t timenow; |
#define MIN_PID 4 |
#define MIN_PID 4 |
|
|
printf("size (Kb): %d [%d] ", size, ent->size); |
printf("size (Kb): %d [%d] ", size, ent->size); |
if (verbose && (ent->hours > 0)) |
if (verbose && (ent->hours > 0)) |
printf(" age (hr): %d [%d] ", modtime, ent->hours); |
printf(" age (hr): %d [%d] ", modtime, ent->hours); |
if (monitor && ent->flags & CE_MONITOR) |
if (monitormode && ent->flags & CE_MONITOR) |
domonitor(ent->log, ent->whom); |
domonitor(ent->log, ent->whom); |
if (!monitor && (((ent->size > 0) && (size >= ent->size)) || |
if (!monitormode && (((ent->size > 0) && (size >= ent->size)) || |
((ent->hours > 0) && ((modtime >= ent->hours) |
((ent->hours > 0) && ((modtime >= ent->hours) |
|| (modtime < 0))))) { |
|| (modtime < 0))))) { |
if (verbose) |
if (verbose) |
|
|
conf = optarg; |
conf = optarg; |
break; |
break; |
case 'm': |
case 'm': |
monitor++; |
monitormode++; |
break; |
break; |
default: |
default: |
usage(); |
usage(); |