Small fixes

This commit is contained in:
Ron Pedde
2004-03-08 21:27:38 +00:00
parent cdbbab756f
commit 11eaaf6d4f
3 changed files with 32 additions and 22 deletions

View File

@@ -422,6 +422,8 @@ int main(int argc, char *argv[]) {
WSHANDLE server;
int parseonly=0;
int foreground=0;
int start_time;
int end_time;
config.use_mdns=1;
@@ -460,6 +462,8 @@ int main(int argc, char *argv[]) {
/* read the configfile, if specified, otherwise
* try defaults */
start_time=time(NULL);
if(config_read(configfile)) {
perror("config_read");
exit(EXIT_FAILURE);
@@ -536,6 +540,11 @@ int main(int argc, char *argv[]) {
rend_register(config.servername,"_http._tcp",config.port);
}
end_time=time(NULL);
log_err(0,"Scanned %d songs in %d seconds\n",db_get_song_count(),
end_time-start_time);
config.stop=0;
while(!config.stop)