--- projects/libstatgrab/src/saidar/saidar.c 2004/01/05 17:20:30 1.22 +++ projects/libstatgrab/src/saidar/saidar.c 2004/04/04 22:48:51 1.26 @@ -1,7 +1,7 @@ /* * i-scream central monitoring system * http://www.i-scream.org - * Copyright (C) 2000-2002 i-scream + * Copyright (C) 2000-2004 i-scream * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -16,6 +16,8 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id: saidar.c,v 1.26 2004/04/04 22:48:51 tdb Exp $ */ #ifdef HAVE_CONFIG_H @@ -425,7 +427,6 @@ void usage(char *progname){ int main(int argc, char **argv){ extern char *optarg; - extern int optind; int c; time_t last_update = 0; @@ -446,7 +447,7 @@ int main(int argc, char **argv){ switch (c){ case 'd': delay = atoi(optarg); - if (delay == 0){ + if (delay < 1){ fprintf(stderr, "Time must be 1 second or greater\n"); exit(1); }