summaryrefslogtreecommitdiff
path: root/src/common/console.c
diff options
context:
space:
mode:
authorshennetsind <notind@gmail.com>2013-06-08 13:15:28 -0700
committershennetsind <notind@gmail.com>2013-06-08 13:15:28 -0700
commit13f5061b2640f017028c0d6f9ea0b657631b46c3 (patch)
tree0304d4af4a803632f2fb9a8aa32455af49882375 /src/common/console.c
parent6d042dcbb41cc278f14706e7306412642ea90d3a (diff)
parentd73783f22b2bb881aab74524d153d89a5932a199 (diff)
downloadhercules-13f5061b2640f017028c0d6f9ea0b657631b46c3.tar.gz
hercules-13f5061b2640f017028c0d6f9ea0b657631b46c3.tar.bz2
hercules-13f5061b2640f017028c0d6f9ea0b657631b46c3.tar.xz
hercules-13f5061b2640f017028c0d6f9ea0b657631b46c3.zip
Merge pull request #39 from Earisu/master
Help with renewal phase one and HPM system
Diffstat (limited to 'src/common/console.c')
-rw-r--r--src/common/console.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/console.c b/src/common/console.c
index 33d485497..08daec04e 100644
--- a/src/common/console.c
+++ b/src/common/console.c
@@ -101,7 +101,7 @@ CPCMD(help) {
}
/* [Ind/Hercules] */
CPCMD(malloc_usage) {
- unsigned int val = (unsigned int)malloclib->usage();
+ unsigned int val = (unsigned int)iMalloc->usage();
ShowInfo("malloc_usage: %.2f MB\n",(double)(val)/1024);
}
#define CP_DEF_C(x) { #x , NULL , NULL, NULL }
@@ -369,8 +369,8 @@ void console_parse_init(void) {
exit(EXIT_FAILURE);
}
- add_timer_func_list(console->parse_timer, "console_parse_timer");
- add_timer_interval(gettick() + 1000, console->parse_timer, 0, 0, 500);/* start listening in 1s; re-try every 0.5s */
+ iTimer->add_timer_func_list(console->parse_timer, "console_parse_timer");
+ iTimer->add_timer_interval(iTimer->gettick() + 1000, console->parse_timer, 0, 0, 500);/* start listening in 1s; re-try every 0.5s */
}
#endif /* CONSOLE_INPUT */