From b16cf231ad945aef3af34e0e7e864ec53052ae71 Mon Sep 17 00:00:00 2001 From: in2 Date: Thu, 16 Jan 2003 13:51:27 +0000 Subject: if SYSOP, show memory usage in system status git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@609 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/cal.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/cal.c b/mbbsd/cal.c index 48151b7c..d3c00bdd 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -1,4 +1,4 @@ -/* $Id: cal.c,v 1.21 2003/01/16 11:58:04 kcwu Exp $ */ +/* $Id: cal.c,v 1.22 2003/01/16 13:51:27 in2 Exp $ */ #include "bbs.h" /* 防堵 Multi play */ @@ -431,6 +431,9 @@ p_sysinfo(void) MAX_ACTIVE, #endif COMPILE_TIME, ctime(&start_time)); + if (HAS_PERM(PERM_SYSOP)) { + prints("記憶體使用量: %d\n", ((int)sbrk(0) - 0x8048000) / 1024); + } pressanykey(); return 0; } -- cgit v1.2.3