mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Do not account the tape change time for ETA estimations.
PR: bin/4369 Submitted by: blank@fox.uni-trier.de (Sascha Blank)
This commit is contained in:
parent
b8904f2acb
commit
d6038ed629
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue