mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-26 12:36:15 -05:00
Small fixes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user