Changeset: cd0fbacbb7af for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=cd0fbacbb7af
Modified Files:
        tools/merovingian/daemon/forkmserver.c
Branch: default
Log Message:

Change the profiler log file prefix to agree with the documentation


diffs (21 lines):

diff --git a/tools/merovingian/daemon/forkmserver.c 
b/tools/merovingian/daemon/forkmserver.c
--- a/tools/merovingian/daemon/forkmserver.c
+++ b/tools/merovingian/daemon/forkmserver.c
@@ -910,7 +910,7 @@ fork_profiler(char *dbname, sabdb **stat
 
                fclose(pidfile);
                /* construct the log output file */
-               log_filename_len = strlen(*log_path) + strlen("/proflen_") + 
strlen(dbname) + 26;
+               log_filename_len = strlen(*log_path) + strlen("/proflog_") + 
strlen(dbname) + 26;
                log_filename = malloc(log_filename_len);
                if (log_filename == NULL) {
                        /* TODO What now? */
@@ -920,7 +920,7 @@ fork_profiler(char *dbname, sabdb **stat
                current_time = time(NULL);
                tm_ctime = localtime(&current_time);
                strftime(timestamp, sizeof(timestamp), "%Y-%m-%d_%H:%M:%S", 
tm_ctime);
-               snprintf(log_filename, log_filename_len, 
"%s/proflen_%s_%s.json",
+               snprintf(log_filename, log_filename_len, 
"%s/proflog_%s_%s.json",
                                 *log_path, dbname, timestamp);
 
                /* build the arguments */
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to