summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-08-25 15:09:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-08-25 15:09:11 +0000
commit3390b24964033d1f57287f2efc41883bb8e9fd2b (patch)
treede69ca6abb860911dc5dde6016eb287b93ce7325 /sbin
parente7bdaf7b9085ddf893c42d722c9392bac9ed6456 (diff)
subtract take changing time from estimate; blank@fox.uni-trier.de
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dump/tape.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sbin/dump/tape.c b/sbin/dump/tape.c
index 0257e0cfb1b..29987325047 100644
--- a/sbin/dump/tape.c
+++ b/sbin/dump/tape.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tape.c,v 1.5 1997/08/05 23:17:12 angelos Exp $ */
+/* $OpenBSD: tape.c,v 1.6 1997/08/25 15:09:10 deraadt Exp $ */
/* $NetBSD: tape.c,v 1.11 1997/06/05 11:13:26 lukem Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)tape.c 8.2 (Berkeley) 3/17/94";
#else
-static char rcsid[] = "$OpenBSD: tape.c,v 1.5 1997/08/05 23:17:12 angelos Exp $";
+static char rcsid[] = "$OpenBSD: tape.c,v 1.6 1997/08/25 15:09:10 deraadt Exp $";
#endif
#endif /* not lint */
@@ -428,10 +428,13 @@ trewind()
void
close_rewind()
{
+ time_t tstart_changevol, tend_changevol;
+
trewind();
(void)do_stats();
if (nexttape)
return;
+ time(&tstart_changevol);
if (!nogripe) {
msg("Change Volumes: Mount volume #%d\n", tapeno+1);
broadcast("CHANGE DUMP VOLUMES!\7\7\n");
@@ -441,6 +444,8 @@ close_rewind()
dumpabort(0);
/*NOTREACHED*/
}
+ time(&tend_changevol);
+ tstart_writing += (tend_changevol - tstart_changevol);
}
void