summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-01-16 21:51:27 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-01-16 21:51:27 +0800
commitb16cf231ad945aef3af34e0e7e864ec53052ae71 (patch)
tree6064ad71bde5a983765f04761d317ac8fa95cba8
parentf20ec866a1837924674452effdd1bc99df77e258 (diff)
downloadpttbbs-b16cf231ad945aef3af34e0e7e864ec53052ae71.tar
pttbbs-b16cf231ad945aef3af34e0e7e864ec53052ae71.tar.gz
pttbbs-b16cf231ad945aef3af34e0e7e864ec53052ae71.tar.bz2
pttbbs-b16cf231ad945aef3af34e0e7e864ec53052ae71.tar.lz
pttbbs-b16cf231ad945aef3af34e0e7e864ec53052ae71.tar.xz
pttbbs-b16cf231ad945aef3af34e0e7e864ec53052ae71.tar.zst
pttbbs-b16cf231ad945aef3af34e0e7e864ec53052ae71.zip
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
-rw-r--r--mbbsd/cal.c5
1 files changed, 4 insertions, 1 deletions
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;
}