diff options
author | pst <pst@FreeBSD.org> | 1997-01-07 20:15:04 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1997-01-07 20:15:04 +0000 |
commit | 3e449dc0ea2e5767bf0dddc3ef2521656037d33b (patch) | |
tree | b2379a818628c3ad290406c7e3b308db00d3390a /sbin/dump/main.c | |
parent | ac82b8a657c8154201e4791f40f7ba417f5debdb (diff) | |
download | FreeBSD-src-3e449dc0ea2e5767bf0dddc3ef2521656037d33b.zip FreeBSD-src-3e449dc0ea2e5767bf0dddc3ef2521656037d33b.tar.gz |
bin/1789: dump estimates a negative number of tapes needed for huge dumps
Diffstat (limited to 'sbin/dump/main.c')
-rw-r--r-- | sbin/dump/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dump/main.c b/sbin/dump/main.c index 408043a..481fecb 100644 --- a/sbin/dump/main.c +++ b/sbin/dump/main.c @@ -368,11 +368,11 @@ main(argc, argv) Assume no erroneous blocks; this can be compensated for with an artificially low tape size. */ fetapes = - ( tapesize /* blocks */ + ( (double) tapesize /* blocks */ * TP_BSIZE /* bytes/block */ * (1.0/density) /* 0.1" / byte " */ + - tapesize /* blocks */ + (double) tapesize /* blocks */ * (1.0/ntrec) /* streaming-stops per block */ * 15.48 /* 0.1" / streaming-stop " */ ) * (1.0 / tsize ); /* tape / 0.1" " */ @@ -381,11 +381,11 @@ main(argc, argv) tape */ int tenthsperirg = (density == 625) ? 3 : 7; fetapes = - ( tapesize /* blocks */ + ( (double) tapesize /* blocks */ * TP_BSIZE /* bytes / block */ * (1.0/density) /* 0.1" / byte " */ + - tapesize /* blocks */ + (double) tapesize /* blocks */ * (1.0/ntrec) /* IRG's / block */ * tenthsperirg /* 0.1" / IRG " */ ) * (1.0 / tsize ); /* tape / 0.1" " */ |