diff options
author | joerg <joerg@FreeBSD.org> | 1997-10-12 14:09:13 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1997-10-12 14:09:13 +0000 |
commit | 0e8a4e730302429c1f3f386cf42e3d1806193c70 (patch) | |
tree | f3e58cd68f3f1694833846f9a3812a0152e1d659 /sbin/dump | |
parent | 8eaf7f41210107aba4c6a4684a7dbaa08acfc49d (diff) | |
download | FreeBSD-src-0e8a4e730302429c1f3f386cf42e3d1806193c70.zip FreeBSD-src-0e8a4e730302429c1f3f386cf42e3d1806193c70.tar.gz |
Do not account the tape change time for ETA estimations.
PR: bin/4369
Submitted by: blank@fox.uni-trier.de (Sascha Blank)
Diffstat (limited to 'sbin/dump')
-rw-r--r-- | sbin/dump/tape.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sbin/dump/tape.c b/sbin/dump/tape.c index 91f5dc4..da00545 100644 --- a/sbin/dump/tape.c +++ b/sbin/dump/tape.c @@ -366,9 +366,12 @@ trewind() void close_rewind() { + time_t tstart_changevol, tend_changevol; + trewind(); if (nexttape) return; + (void)time((time_t *)&(tstart_changevol)); if (!nogripe) { msg("Change Volumes: Mount volume #%d\n", tapeno+1); broadcast("CHANGE DUMP VOLUMES!\7\7\n"); @@ -378,6 +381,9 @@ close_rewind() dumpabort(0); /*NOTREACHED*/ } + (void)time((time_t *)&(tend_changevol)); + if ((tstart_changevol != (time_t)-1) && (tend_changevol != (time_t)-1)) + tstart_writing += (tend_changevol - tstart_changevol); } void |