Relax code fixes
This commit is contained in:
parent
cee2199b43
commit
277ddd0f30
@ -47,7 +47,6 @@
|
||||
*/
|
||||
#define MAXTASKS 10
|
||||
#define SLOWRUN 20
|
||||
#define PAUSETIME 3
|
||||
#define TMPNAME "TMP."
|
||||
#define LCKNAME "LOCKTASK"
|
||||
#define ICMP_BASEHDR_LEN 8
|
||||
|
@ -1,8 +1,7 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* File ..................: mbtask/taskstat.c
|
||||
* $Id$
|
||||
* Purpose ...............: Keep track of server status
|
||||
* Last modification date : 31-Oct-2001
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2001
|
||||
@ -49,6 +48,7 @@ int s_msglink = FALSE;
|
||||
int s_newnews = FALSE;
|
||||
int s_bbsopen = FALSE;
|
||||
extern int UPSalarm;
|
||||
extern int ptimer;
|
||||
|
||||
|
||||
|
||||
@ -336,8 +336,6 @@ char *getseq(void)
|
||||
|
||||
int sem_set(char *sem, int value)
|
||||
{
|
||||
int rc = TRUE;
|
||||
|
||||
tasklog('s', "sem_set(%s, %s)", sem, value?"TRUE":"FALSE");
|
||||
|
||||
if (!strcmp(sem, "scanout")) {
|
||||
@ -358,9 +356,10 @@ int sem_set(char *sem, int value)
|
||||
} else if (!strcmp(sem, "reqindex")) {
|
||||
s_reqindex = value;
|
||||
} else {
|
||||
rc = FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
return rc;
|
||||
ptimer = PAUSETIME;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,6 +1,10 @@
|
||||
/* $Id$ */
|
||||
|
||||
#ifndef _TASKSTAT_H
|
||||
#define _TASKSTAT_H
|
||||
|
||||
#define PAUSETIME 3
|
||||
|
||||
void status_init(void); /* Initialize status module */
|
||||
void stat_inc_clients(void); /* Increase connected clients */
|
||||
void stat_dec_clients(void); /* Decrease connected clients */
|
||||
|
Reference in New Issue
Block a user