Changeset: 2e74b023dfee for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/2e74b023dfee Modified Files: monetdb5/mal/mal_runtime.c Branch: default Log Message:
Print time in a more understandable way. diffs (21 lines): diff --git a/monetdb5/mal/mal_runtime.c b/monetdb5/mal/mal_runtime.c --- a/monetdb5/mal/mal_runtime.c +++ b/monetdb5/mal/mal_runtime.c @@ -326,11 +326,15 @@ runtimeProfileFinish(Client cntxt, MalBl for (i = 0; i < qsize; i++) { // print some info. of queries not "finished" if (strcmp(QRYqueue[i].status, "finished") != 0) { + struct tm tmp; + char tbuf[64]; + (void) localtime_r(&QRYqueue[i].start, &tmp); + strftime(tbuf, sizeof(tbuf), "%F %T", &tmp); TRC_INFO_ENDIF(MAL_SERVER, "QRYqueue[%zu]: stk(%p), tag(" OIDFMT - "), username(%s), start(%ld), status(%s), query(%s)", + "), username(%s), start(%s), status(%s), query(%s)", i, QRYqueue[i].stk, QRYqueue[i].tag, - QRYqueue[i].username, QRYqueue[i].start, + QRYqueue[i].username, tbuf, QRYqueue[i].status, QRYqueue[i].query); } } _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org