X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Freqstat.c;h=838f6116695eb72072620a2c63579f766b4c01af;hb=1c6850c00d38de5d4b4d4f013633c73456b0e683;hp=9813000c4158a9a0fe6d484d3ab08252967f99be;hpb=ce93a8cb6e585300d4a73a86fb8b4666cdf82972;p=doldaconnect.git diff --git a/daemon/reqstat.c b/daemon/reqstat.c index 9813000..838f611 100644 --- a/daemon/reqstat.c +++ b/daemon/reqstat.c @@ -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); } @@ -130,6 +130,7 @@ static int init(int hup) { if(!hup) { GCBREG(newtransfercb, reg, NULL); + chfile(confgetvar("reqstat", "file"), NULL); CBREG(confgetvar("reqstat", "file"), conf_update, chfile, NULL, NULL); } return(0);