diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-01-16 21:51:27 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-01-16 21:51:27 +0800 |
commit | b16cf231ad945aef3af34e0e7e864ec53052ae71 (patch) | |
tree | 6064ad71bde5a983765f04761d317ac8fa95cba8 /mbbsd/cal.c | |
parent | f20ec866a1837924674452effdd1bc99df77e258 (diff) | |
download | pttbbs-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
Diffstat (limited to 'mbbsd/cal.c')
-rw-r--r-- | mbbsd/cal.c | 5 |
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; } |