Changeset: dc15c170a9de for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=dc15c170a9de
Modified Files:
        clients/mapiclient/mclient.c
Branch: Mar2018
Log Message:

mclient: revised and added some comments


diffs (30 lines):

diff --git a/clients/mapiclient/mclient.c b/clients/mapiclient/mclient.c
--- a/clients/mapiclient/mclient.c
+++ b/clients/mapiclient/mclient.c
@@ -274,7 +274,9 @@ timerHuman(int64_t sqloptimizer, int64_t
         * - server-measured detailed performance measures only per query.
         */
 
-       if (timermode == T_CLOCK && (!singleinstr != !total)) { /* (singleinstr 
XOR total) */
+       /* (!singleinstr != !total) is C for ((singleinstr != 0) XOR (total != 
0)) */
+       if (timermode == T_CLOCK && (!singleinstr != !total)) {
+               /* print wall-clock in "human-friendly" format */
                fflush(stderr);
                mnstr_flush(toConsole);
                if (t / 1000 < 1000) {
@@ -299,13 +301,13 @@ timerHuman(int64_t sqloptimizer, int64_t
                fflush(stderr);
                return;
        }
-       /* for performance measures we use milliseconds as the base */
        if (timermode == T_PERF) {
+               /* for performance measures we use milliseconds as the base */
                if ((!singleinstr != !total) || !total) {
                        fflush(stderr);
                        mnstr_flush(toConsole);
                }
-               if (!singleinstr != !total) /* (singleinstr XOR total) */
+               if (!singleinstr != !total)
                        fprintf(stderr, "clk:%" PRId64 ".%03d ", t / 1000, 
(int) (t % 1000));
                if (!total)
                        fprintf(stderr, "sql:%" PRId64 ".%03d opt:%" PRId64 
".%03d run:%" PRId64 ".%03d ",
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to