diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2004-10-22 15:36:35 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2004-10-22 15:36:35 +0000 |
commit | feca88ede6dec816878832f2129fe85b211770e4 (patch) | |
tree | 7679a3c1425af4829b539f58b99daadbdd6f5207 /Src/jobs.c | |
parent | 658f46a8094663e4a1d3dfbf37a951cbd9e1a345 (diff) | |
download | zsh-feca88ede6dec816878832f2129fe85b211770e4.tar.gz zsh-feca88ede6dec816878832f2129fe85b211770e4.tar.xz zsh-feca88ede6dec816878832f2129fe85b211770e4.zip |
20513: fix tests of zero-length patterns
trivial optimisation in jobs.c (unposted)
Diffstat (limited to 'Src/jobs.c')
-rw-r--r-- | Src/jobs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/jobs.c b/Src/jobs.c index 9bb8bbbd7..ed97d2cef 100644 --- a/Src/jobs.c +++ b/Src/jobs.c @@ -565,9 +565,9 @@ printtime(struct timeval *real, child_times_t *ti, char *desc) #ifdef HAVE_GETRUSAGE user_time = ti->ru_utime.tv_sec + ti->ru_utime.tv_usec / 1000000.0; system_time = ti->ru_stime.tv_sec + ti->ru_stime.tv_usec / 1000000.0; - percent = 100.0 * (user_time + system_time) - / (real->tv_sec + real->tv_usec / 1000000.0); total_time = user_time + system_time; + percent = 100.0 * total_time + / (real->tv_sec + real->tv_usec / 1000000.0); #else set_clktck(); user_time = ti->ut / (double) clktck; |