Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Write the hash cache back to disk whenever it is dirty when the daemon exits.
[doldaconnect.git]
/
daemon
/
reqstat.c
diff --git
a/daemon/reqstat.c
b/daemon/reqstat.c
index
9813000
..
cbe1c72
100644
(file)
--- 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;
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);
}
free(b);
fclose(out);
}
@@
-117,7
+117,7
@@
static int chfile(struct configvar *var, void *uudata)
{
if(fn != NULL)
free(fn);
{
if(fn != NULL)
free(fn);
- if(var->val.str[0] == L'0') {
+ if(var->val.str[0] == L'
\
0') {
fn = NULL;
} else {
if((fn = icwcstombs(var->val.str, NULL)) == NULL)
fn = NULL;
} else {
if((fn = icwcstombs(var->val.str, NULL)) == NULL)
@@
-130,6
+130,7
@@
static int init(int hup)
{
if(!hup) {
GCBREG(newtransfercb, reg, NULL);
{
if(!hup) {
GCBREG(newtransfercb, reg, NULL);
+ chfile(confgetvar("reqstat", "file"), NULL);
CBREG(confgetvar("reqstat", "file"), conf_update, chfile, NULL, NULL);
}
return(0);
CBREG(confgetvar("reqstat", "file"), conf_update, chfile, NULL, NULL);
}
return(0);