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
commitbb08f92f76be2a24f5101a8354038438a2d98cc0 (patch)
tree26195cc7b9ca2e5d9d2c054e0bffb85c8ed956ad
parent1878c9944f58a85f6a7754118616137f667bafa0 (diff)
downloadpttbbs-bb08f92f76be2a24f5101a8354038438a2d98cc0.tar
pttbbs-bb08f92f76be2a24f5101a8354038438a2d98cc0.tar.gz
pttbbs-bb08f92f76be2a24f5101a8354038438a2d98cc0.tar.bz2
pttbbs-bb08f92f76be2a24f5101a8354038438a2d98cc0.tar.lz
pttbbs-bb08f92f76be2a24f5101a8354038438a2d98cc0.tar.xz
pttbbs-bb08f92f76be2a24f5101a8354038438a2d98cc0.tar.zst
pttbbs-bb08f92f76be2a24f5101a8354038438a2d98cc0.zip
if SYSOP, show memory usage in system status
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@609 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/cal.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/cal.c b/pttbbs/mbbsd/cal.c
index 48151b7c..d3c00bdd 100644
--- a/pttbbs/mbbsd/cal.c
+++ b/pttbbs/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;
}