diff options
Diffstat (limited to 'src/exec.c')
| -rw-r--r-- | src/exec.c | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -215,10 +215,14 @@ static int eval_time(const node *n, unsigned flags) { getrusage(RUSAGE_SELF, &s1); getrusage(RUSAGE_CHILDREN, &c1); bool posix = n->u.time.posix; - long long self[2] = {tv_diff(s0.ru_utime, s1.ru_utime), - tv_diff(s0.ru_stime, s1.ru_stime)}; - long long kids[2] = {tv_diff(c0.ru_utime, c1.ru_utime), - tv_diff(c0.ru_stime, c1.ru_stime)}; + long long self[2] = { + tv_diff(s0.ru_utime, s1.ru_utime), + tv_diff(s0.ru_stime, s1.ru_stime), + }; + long long kids[2] = { + tv_diff(c0.ru_utime, c1.ru_utime), + tv_diff(c0.ru_stime, c1.ru_stime), + }; static const char *const label[2] = {"user", "sys"}; out_flush(&out1); put_time("real", tv_diff(t0, t1), posix); @@ -877,7 +881,10 @@ static void assign_temp(const simple_cmd *sc) { */ static bool tag_prefix_begin(const simple_cmd *sc, tag_mode saved[3]) { static const char *const name[3] = { - "_TAG_REDIR_IN=", "_TAG_REDIR_OUT=", "_TAG_REDIR_ERR="}; + "_TAG_REDIR_IN=", + "_TAG_REDIR_OUT=", + "_TAG_REDIR_ERR=", + }; bool any = false; memcpy(saved, tag_redir, sizeof tag_redir); for (int i = 0; i < sc->nassign; i++) { |
