summary refs log tree commit diff
path: root/extrace.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-08-20 00:53:09 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-08-20 00:53:09 +0200
commitf471af9ad37a7e1f11a8c0808a6ef73de53c5d48 (patch)
tree9b5eccd41c0ea5897b53a9b91b39dcef7a0e634f /extrace.c
parent66d549b77f1341914c23e9eb016749809fdfffda (diff)
downloadextrace-f471af9ad37a7e1f11a8c0808a6ef73de53c5d48.tar.gz
extrace-f471af9ad37a7e1f11a8c0808a6ef73de53c5d48.tar.xz
extrace-f471af9ad37a7e1f11a8c0808a6ef73de53c5d48.zip
add unit to timestamp
Diffstat (limited to 'extrace.c')
-rw-r--r--extrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extrace.c b/extrace.c
index 4be6767..47cbb5d 100644
--- a/extrace.c
+++ b/extrace.c
@@ -369,8 +369,8 @@ handle_msg(struct cn_msg *cn_hdr)
 		else
 			fprintf(output, " exited status=%d",
 			    WEXITSTATUS(ev->event_data.exit.exit_code));
-		fprintf(output, " time=%.3f\n",
-		    (ev->timestamp_ns - pid_db[i].start) / 1e9 );
+		fprintf(output, " time=%.3fs\n",
+		    (ev->timestamp_ns - pid_db[i].start) / 1e9);
 		fflush(output);
 	}
 }