X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..b88fd7912fc173b50b4638fb1e25155999568990:/server/stats.c diff --git a/server/stats.c b/server/stats.c index 772be13..ad35cb8 100644 --- a/server/stats.c +++ b/server/stats.c @@ -15,6 +15,12 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ +/** @file server/stats.c + * @brief Generate server statistics + * + * This is done in a subprogram because it can be quite slow and we don't want + * to wedge the rest of the server for the duration. + */ #include "disorder-server.h" @@ -68,7 +74,7 @@ int main(int argc, char **argv) { openlog(progname, LOG_PID, LOG_DAEMON); log_default = &log_syslog; } - if(config_read(0)) + if(config_read(0, NULL)) fatal(0, "cannot read configuration"); trackdb_init(TRACKDB_NO_RECOVER); trackdb_open(TRACKDB_NO_UPGRADE);