summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/cal.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index 1434f27d..521954c3 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -422,7 +422,13 @@ p_sysinfo(void)
prints("記憶體用量: sbrk: %d KB, idrss: %d KB, isrss: %d KB\n",
((int)sbrk(0) - 0x8048000) / 1024,
(int)ru.ru_idrss, (int)ru.ru_isrss);
- prints("特別參數:"
+ 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);
+#ifdef CPULIMIT
+ prints(" (limit %d secs)", CPULIMIT * 60);
+#endif
+ prints("\n特別參數:"
#ifdef CRITICAL_MEMORY
" CRITICAL_MEMORY"
#endif