Changeset: 6b7d98a59a98 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6b7d98a59a98 Modified Files: clients/mapiclient/mclient.c Branch: Mar2018 Log Message:
mclient: added another comment diffs (15 lines): diff --git a/clients/mapiclient/mclient.c b/clients/mapiclient/mclient.c --- a/clients/mapiclient/mclient.c +++ b/clients/mapiclient/mclient.c @@ -1960,6 +1960,11 @@ format_result(Mapi mid, MapiHdl hdl, int timerHuman(sqloptimizer, maloptimizer, querytime, singleinstr, 0); } } while (!mnstr_errnr(toConsole) && (rc = mapi_next_result(hdl)) == 1); + /* + * in case we called timerHuman() in the loop above with "total == 0", + * call is again with "total == 1" to get the total wall-clock time + * in case "singleinstr == 0 (false). + */ if (timerHumanCalled) timerHuman(sqloptimizer, maloptimizer, querytime, singleinstr, 1); if (mnstr_errnr(toConsole)) { _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list