diff options
author | phk <phk@FreeBSD.org> | 1996-11-13 20:00:03 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-11-13 20:00:03 +0000 |
commit | 6c0fd53b323fe1e401dc8c67516a053bfe61f962 (patch) | |
tree | 53fc828f0ad161e700a6fc8fe723a969aade6a4b /bin/dd/dd.h | |
parent | 46e1202181d505ac01d3b6baa6922896edbfca8a (diff) | |
download | FreeBSD-src-6c0fd53b323fe1e401dc8c67516a053bfe61f962.zip FreeBSD-src-6c0fd53b323fe1e401dc8c67516a053bfe61f962.tar.gz |
Bruce says: "You have been programming in the kernel for too long :-)."
and he's right ... I forgot about this floating point stuff you can
use in user-land :-)
Increase precision of duration to microseconds.
No heuristics to avoid overflow in calculation needed - just depend
on DBL_MAX being a bit larger than LONG_MAX.
Use double instead of `struct timeval' in dd.h so that everything
doesn't have to include <sys/time.h>.
Fixed style bugs in recent and old FreeBSD changes.
Reviewed by: phk
Submitted by: bde
Diffstat (limited to 'bin/dd/dd.h')
-rw-r--r-- | bin/dd/dd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dd/dd.h b/bin/dd/dd.h index 6ebc3a7..b0635ed 100644 --- a/bin/dd/dd.h +++ b/bin/dd/dd.h @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * @(#)dd.h 8.3 (Berkeley) 4/2/94 - * $Id: dd.h,v 1.2 1994/09/24 02:54:54 davidg Exp $ + * $Id: dd.h,v 1.3 1996/11/12 23:09:12 phk Exp $ */ /* Input/output stream state. */ @@ -70,7 +70,7 @@ typedef struct { u_long trunc; /* # of truncated records */ u_long swab; /* # of odd-length swab blocks */ u_long bytes; /* # of bytes written */ - struct timeval start; /* start time of dd */ + double start; /* start time of dd */ } STAT; /* Flags (in ddflags). */ |