Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv9253/src
Modified Files:
helpserv.c
Log Message:
only repeatedly update stats if there was a previous stats run
(under RedHat, the mktime() after localtime(&zero_var) returns -1,
causing an infinite loop of trying to update the stats)
Index: helpserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/helpserv.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -r1.54 -r1.55
*** helpserv.c 1 Dec 2002 00:38:06 -0000 1.54
--- helpserv.c 14 Dec 2002 02:04:17 -0000 1.55
***************
*** 4132,4136 ****
/* Make up for downtime... though this will only really affect the
* time_per_week */
! if (helpserv_next_stats(last_stats_update) < now) {
time_t statsrun=last_stats_update;
--- 4132,4136 ----
/* Make up for downtime... though this will only really affect the
* time_per_week */
! if (last_stats_update && (helpserv_next_stats(last_stats_update) < now)) {
time_t statsrun=last_stats_update;
|