From 1123cf6f64f4be51a66dca47d05690ebf62b1be8 Mon Sep 17 00:00:00 2001 From: Hugh Graham Date: Tue, 7 Aug 2001 14:39:28 +0000 Subject: 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. --- bin/dd/args.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/dd/args.c') diff --git a/bin/dd/args.c b/bin/dd/args.c index 05e0cabf767..95e4979601c 100644 --- a/bin/dd/args.c +++ b/bin/dd/args.c @@ -1,4 +1,4 @@ -/* $OpenBSD: args.c,v 1.8 1998/07/09 18:39:23 deraadt Exp $ */ +/* $OpenBSD: args.c,v 1.9 2001/08/07 14:39:27 hugh Exp $ */ /* $NetBSD: args.c,v 1.7 1996/03/01 01:18:58 jtc Exp $ */ /*- @@ -42,11 +42,12 @@ #if 0 static char sccsid[] = "@(#)args.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: args.c,v 1.8 1998/07/09 18:39:23 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: args.c,v 1.9 2001/08/07 14:39:27 hugh Exp $"; #endif #endif /* not lint */ #include +#include #include #include -- cgit v1.2.3