From 75dea51357c7857067abea339b0b928fd15785ff Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 13 Aug 2021 03:25:09 +1000 Subject: Some more tweaks to output. --- src/sledjchisl/sledjchisl.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 9bbc63b..5f62447 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -918,7 +918,7 @@ int LuaToHash(reqData *Rd, char *file, char *var, qhashtbl_t *tnm, int ret, stru perror_msg("Unable to get the time."); double n = (now->tv_sec * 1000000000.0) + now->tv_nsec; double t = (then.tv_sec * 1000000000.0) + then.tv_nsec; - T("Reading %s file took %lf seconds", type, (n - t) / 1000000000.0); + t("Reading %s file took %lf seconds", type, (n - t) / 1000000000.0); } return ret; @@ -3058,7 +3058,7 @@ end: if (-1 == clock_gettime(CLOCK_REALTIME, &dbLast)) perror_msg("Unable to get the time."); n = (dbLast.tv_sec * 1000000000.0) + dbLast.tv_nsec; - T("dbDoSomething(%s) took %lf seconds", req->sql, (n - t) / 1000000000.0); + t("dbDoSomething(%s) took %lf seconds", req->sql, (n - t) / 1000000000.0); return ret; } @@ -3134,7 +3134,7 @@ my_ulonglong dbCount(char *table, char *where) perror_msg("Unable to get the time."); double n = (now.tv_sec * 1000000000.0) + now.tv_nsec; double t = (then.tv_sec * 1000000000.0) + then.tv_nsec; -// T("dbCount(%s) took %lf seconds", sql, (n - t) / 1000000000.0); +// t("dbCount(%s) took %lf seconds", sql, (n - t) / 1000000000.0); free(sql); return ret; } @@ -3183,7 +3183,7 @@ my_ulonglong dbCountJoin(char *table, char *select, char *join, char *where) perror_msg("Unable to get the time."); double n = (now.tv_sec * 1000000000.0) + now.tv_nsec; double t = (then.tv_sec * 1000000000.0) + then.tv_nsec; -// T("dbCointJoin(%s) took %lf seconds", sql, (n - t) / 1000000000.0); +// t("dbCointJoin(%s) took %lf seconds", sql, (n - t) / 1000000000.0); free(sql); return ret; } @@ -5039,7 +5039,7 @@ notWritten: char *c = xmprintf("load iar -m %s %s / password /opt/opensim_SC/backups/DefaultMember.IAR", first, last); I("Loading default member IAR for %s %s in sim %s, this might take a couple of minutes.", first, last, name); -T(c); +V(c); sendTmuxCmd(cmd, c); free(cmd); free(c); @@ -7458,7 +7458,7 @@ void sledjchisl_main(void) int ngroups; pw = xgetpwuid(euid); - T("Running as user %s", pw->pw_name); + V("Running as user %s", pw->pw_name); grp = xgetgrgid(egid); ngroups = getgroups(i, groups); -- cgit v1.1