[srvx-commits] CVS: services/src saxdb.c,1.24,1.25
Brought to you by:
entrope
|
From: Entrope <en...@us...> - 2002-12-18 19:06:16
|
Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv18352/src
Modified Files:
saxdb.c
Log Message:
initialize write_interval for DBs with no config entries
write the right part of the output buffer when write_interval==0
Index: saxdb.c
===================================================================
RCS file: /cvsroot/srvx/services/src/saxdb.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** saxdb.c 18 Dec 2002 04:44:53 -0000 1.24
--- saxdb.c 18 Dec 2002 19:06:11 -0000 1.25
***************
*** 99,102 ****
--- 99,104 ----
}
filename = database_get_data(conf, "filename", RECDB_QSTRING);
+ } else {
+ db->write_interval = 1800;
}
/* Insert filename */
***************
*** 426,430 ****
intervalString(buf, db->write_interval);
} else {
! strcpy(buf+INTERVALLEN, "Never");
}
tbl.contents[ii][2] = buf;
--- 428,432 ----
intervalString(buf, db->write_interval);
} else {
! strcpy(buf, "Never");
}
tbl.contents[ii][2] = buf;
|