timer: fix time unit mixup in timer_delay()
The local variable was already divided by 1000, and the return value was being divided by 1000 again - doh! This caused delays in the httpd output plugin that were too small by three orders of magnitude, and the buffer was filled too quickly.
This commit is contained in:
parent
2ef7ee6ca7
commit
097e5dfbdc
2
NEWS
2
NEWS
|
@ -1,4 +1,6 @@
|
|||
ver 0.16.7 (2011/??/??)
|
||||
* output:
|
||||
- httpd: fix excessive buffering
|
||||
|
||||
|
||||
ver 0.16.6 (2011/12/01)
|
||||
|
|
|
@ -81,7 +81,7 @@ timer_delay(const Timer *timer)
|
|||
if (delay > G_MAXINT)
|
||||
delay = G_MAXINT;
|
||||
|
||||
return delay / 1000;
|
||||
return delay;
|
||||
}
|
||||
|
||||
void timer_sync(Timer *timer)
|
||||
|
|
Loading…
Reference in New Issue