File mod_qos-loggerThread.patch of Package apache2-mod_qos
--- tools/src/qslog.c 2009-06-11 21:02:42.000000000 +0200
+++ tools/src/qslog.c 2011-03-05 17:46:47.000000000 +0100
@@ -489,13 +489,13 @@
* calls printAndResetStat() every minute
* => used for real time analysis
*/
-static void *loggerThread(void *argv) {
+void *loggerThread(void *argv) {
char buf[1024];
while(1) {
struct tm *ptr;
time_t tm = time(NULL);
time_t w = tm / LOG_INTERVAL * LOG_INTERVAL + LOG_INTERVAL;
- sleep(w - tm);
+ usleep(1000000*(w - tm));
tm = time(NULL);
ptr = localtime(&tm);