Fixed one last bug in the request logger.
authorFredrik Tolf <fredrik@dolda2000.com>
Thu, 4 Oct 2007 02:49:37 +0000 (04:49 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Thu, 4 Oct 2007 02:49:37 +0000 (04:49 +0200)
daemon/reqstat.c

index 2f51c6d..838f611 100644 (file)
@@ -56,7 +56,7 @@ void filelog(char *format, ...)
     t = ctime(&now);
     if((p = strchr(t, '\n')) != NULL)
        *p = 0;
-    fprintf(out, "%s: %s\n", p, b);
+    fprintf(out, "%s: %s\n", t, b);
     free(b);
     fclose(out);
 }