Blame SOURCES/time-1.7-verbose.patch
|
|
abc9d8 |
--- time-1.7/time.c.verbose Fri Jun 14 05:38:21 1996
|
|
|
abc9d8 |
+++ time-1.7/time.c Sun Nov 4 16:21:09 2001
|
|
|
abc9d8 |
@@ -327,6 +327,8 @@
|
|
|
abc9d8 |
unsigned long r; /* Elapsed real milliseconds. */
|
|
|
abc9d8 |
unsigned long v; /* Elapsed virtual (CPU) milliseconds. */
|
|
|
abc9d8 |
|
|
|
abc9d8 |
+ if (verbose)
|
|
|
abc9d8 |
+ {
|
|
|
abc9d8 |
if (WIFSTOPPED (resp->waitstatus))
|
|
|
abc9d8 |
fprintf (fp, "Command stopped by signal %d\n",
|
|
|
abc9d8 |
WSTOPSIG (resp->waitstatus));
|
|
|
abc9d8 |
@@ -336,6 +338,7 @@
|
|
|
abc9d8 |
else if (WIFEXITED (resp->waitstatus) && WEXITSTATUS (resp->waitstatus))
|
|
|
abc9d8 |
fprintf (fp, "Command exited with non-zero status %d\n",
|
|
|
abc9d8 |
WEXITSTATUS (resp->waitstatus));
|
|
|
abc9d8 |
+ }
|
|
|
abc9d8 |
|
|
|
abc9d8 |
/* Convert all times to milliseconds. Occasionally, one of these values
|
|
|
abc9d8 |
comes out as zero. Dividing by zero causes problems, so we first
|