summaryrefslogtreecommitdiff
path: root/bin/dd/dd.h
diff options
context:
space:
mode:
authorHugh Graham <hugh@cvs.openbsd.org>2001-08-07 14:39:28 +0000
committerHugh Graham <hugh@cvs.openbsd.org>2001-08-07 14:39:28 +0000
commit1123cf6f64f4be51a66dca47d05690ebf62b1be8 (patch)
tree8898b01cbc215f101f3a89a547d9d9302ae5b3b7 /bin/dd/dd.h
parentcaf7ba66da583ab2f500dda722b13b550ed1b19e (diff)
Modify timekeeping in an effort to produce a sane bandwidth measure
for a short running dd process. Some floating point is used so that microsecond precision can be kept without shortening the off_t excessively. millert says ok.
Diffstat (limited to 'bin/dd/dd.h')
-rw-r--r--bin/dd/dd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dd/dd.h b/bin/dd/dd.h
index 461897e7651..df82a5c17db 100644
--- a/bin/dd/dd.h
+++ b/bin/dd/dd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dd.h,v 1.3 1997/02/14 07:05:20 millert Exp $ */
+/* $OpenBSD: dd.h,v 1.4 2001/08/07 14:39:27 hugh Exp $ */
/* $NetBSD: dd.h,v 1.4 1995/03/21 09:04:08 cgd Exp $ */
/*-
@@ -72,7 +72,7 @@ typedef struct {
size_t trunc; /* # of truncated records */
size_t swab; /* # of odd-length swab blocks */
off_t bytes; /* # of bytes written */
- time_t start; /* start time of dd */
+ struct timeval startv; /* start time of dd */
} STAT;
/* Flags (in ddflags). */