apply kuronca patch for heap initialization check.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@811 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong
2010-07-22 02:54:19 +00:00
parent f834265044
commit 0a64bac9d9
3 changed files with 17 additions and 5 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ void rt_tick_increase()
rt_tick_t rt_tick_from_millisecond(rt_uint32_t ms)
{
/* return the calculated tick */
return (RT_TICK_PER_SECOND * ms) / 1000 + (RT_TICK_PER_SECOND * ms) % 1000 ? 1:0;
return (RT_TICK_PER_SECOND * ms+999) / 1000;
}
/*@}*/