Changed mbtask Waiting message

This commit is contained in:
Michiel Broek 2003-08-03 15:11:33 +00:00
parent 3c0de46dc9
commit 893f84ebc5
4 changed files with 12 additions and 1 deletions

View File

@ -31,6 +31,8 @@ v0.37.5 12-Jul-2003
mbtask:
On new installations sets max logins to 1.
Now uses standard locking in ~/var/run
When idle, it now reports the time to the next event to be
seen in mbmon menu 1.
mbmon:
Added program locking, only one mbmon can run at the same time

6
TODO
View File

@ -14,6 +14,12 @@ $Id$
L = Cosmetic or nice to have.
X = Will not be done unless it's really needed.
everything:
L: Finish big-endian machines porting (low priority because it seems
that I'm the only one using Sun's and HP-PA systems next to Intel).
L: Implement IPv6.
install:
N: On some (unsupported) distro's with xinetd the installation script
also adds entries to inetd.conf.

View File

@ -60,6 +60,7 @@ int sock = -1; /* Datagram socket */
struct sockaddr_un servaddr; /* Server address */
struct sockaddr_un from; /* From address */
int fromlen;
char waitmsg[81]; /* Waiting message */
static char spath[PATH_MAX]; /* Socket path */
int logtrans = 0; /* Log transactions */
struct taskrec TCFG; /* Task config record */
@ -1011,7 +1012,7 @@ void scheduler(void)
else if (!s_bbsopen)
sprintf(doing, "BBS is closed");
else if (Processing)
sprintf(doing, "Waiting (%d)", oldmin);
sprintf(doing, "%s", waitmsg);
else
sprintf(doing, "Overload %2.2f", Load);

View File

@ -54,6 +54,7 @@ extern int s_do_inet; /* Internet wanted */
extern int pots_lines; /* POTS lines available */
extern int isdn_lines; /* ISDN lines available */
extern pp_list *pl; /* Available ports */
extern char waitmsg[]; /* Waiting message */
@ -581,6 +582,7 @@ int outstat()
/*
* Log results
*/
sprintf(waitmsg, "Next event at %02d:%02d UTC", nxt_hour, nxt_min);
Syslog('+', "Systems to call: Inet=%d, ISDN=%d, POTS=%d, Next event at %02d:%02d UTC",
inet_calls, isdn_calls, pots_calls, nxt_hour, nxt_min);
free(temp);