diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-28 13:28:06 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-28 13:28:06 +0800 |
commit | 2286d34c1de78415e1b838cdc071d1d8c56ccd80 (patch) | |
tree | 28e5ff2d4270545951802ea2ce0d28b7c366a782 /mbbsd/cal.c | |
parent | 00c6a93e810cc0bac23af6edd59f3ce3b610fc4c (diff) | |
download | pttbbs-2286d34c1de78415e1b838cdc071d1d8c56ccd80.tar pttbbs-2286d34c1de78415e1b838cdc071d1d8c56ccd80.tar.gz pttbbs-2286d34c1de78415e1b838cdc071d1d8c56ccd80.tar.bz2 pttbbs-2286d34c1de78415e1b838cdc071d1d8c56ccd80.tar.lz pttbbs-2286d34c1de78415e1b838cdc071d1d8c56ccd80.tar.xz pttbbs-2286d34c1de78415e1b838cdc071d1d8c56ccd80.tar.zst pttbbs-2286d34c1de78415e1b838cdc071d1d8c56ccd80.zip |
- allow all non-guest user to use myfav (PERM_BASIC)
- add GLOBAL_NEWBIE and GLOBAL_SYSOP to default fav (for new registered user, not empty fav)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3748 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cal.c')
-rw-r--r-- | mbbsd/cal.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c index fb5c12e6..0ed5f2b6 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -466,22 +466,24 @@ p_sysinfo(void) getrusage(RUSAGE_SELF, &ru); prints("記憶體用量: " #ifdef IA32 - "sbrk: %d KB, " + "sbrk: %u KB, " #endif #ifdef __linux__ "VmData: %d KB, VmStk: %d KB, " #endif "idrss: %d KB, isrss: %d KB\n", #ifdef IA32 - ((int)sbrk(0) - 0x8048000) / 1024, + ((unsigned int)sbrk(0) - 0x8048000) / 1024, #endif #ifdef __linux__ vmdata, vmstk, #endif (int)ru.ru_idrss, (int)ru.ru_isrss); prints("CPU 用量: %ld.%06ldu %ld.%06lds", - ru.ru_utime.tv_sec, ru.ru_utime.tv_usec, - ru.ru_stime.tv_sec, ru.ru_stime.tv_usec); + (long int)ru.ru_utime.tv_sec, + (long int)ru.ru_utime.tv_usec, + (long int)ru.ru_stime.tv_sec, + (long int)ru.ru_stime.tv_usec); #ifdef CPULIMIT prints(" (limit %d secs)", (int)(CPULIMIT * 60)); #endif |