Fixed stupid bug which caused klogd to eat up 90% cpu time.
This commit is contained in:
parent
af05ec876f
commit
ad6429b459
2
klogd.c
2
klogd.c
@ -585,7 +585,7 @@ static void LogLine(char *ptr, int len)
|
|||||||
|
|
||||||
auto int delta = 0; /* number of chars copied */
|
auto int delta = 0; /* number of chars copied */
|
||||||
|
|
||||||
while( len >= 0 )
|
while( len > 0 )
|
||||||
{
|
{
|
||||||
if( space == 0 ) /* line buffer is full */
|
if( space == 0 ) /* line buffer is full */
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user