From a68cfa8e351251df28bca5c4afde981e8614edbb Mon Sep 17 00:00:00 2001 From: in2 Date: Sat, 15 Mar 2003 12:33:00 +0000 Subject: show if mbbsd is in CRITICAL_MEMORY mode git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@697 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/cal.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mbbsd/cal.c b/mbbsd/cal.c index fe35bd7e..71091fac 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -1,4 +1,4 @@ -/* $Id: cal.c,v 1.23 2003/01/19 16:06:06 kcwu Exp $ */ +/* $Id: cal.c,v 1.24 2003/03/15 12:33:00 in2 Exp $ */ #include "bbs.h" /* 防堵 Multi play */ @@ -434,6 +434,9 @@ p_sysinfo(void) COMPILE_TIME, ctime(&start_time)); if (HAS_PERM(PERM_SYSOP)) { prints("記憶體使用量: %d\n", ((int)sbrk(0) - 0x8048000) / 1024); +#ifdef CRITICAL_MEMORY + prints("目前在 CRITICAL_MEMORY 模式下\n"); +#endif } pressanykey(); return 0; -- cgit v1.2.3