From 71fbc63c697a2825ded7bbba80cae1b31b7c475a Mon Sep 17 00:00:00 2001 From: Paul Traina Date: Tue, 7 Jan 1997 20:15:04 +0000 Subject: [PATCH] bin/1789: dump estimates a negative number of tapes needed for huge dumps --- sbin/dump/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/dump/main.c b/sbin/dump/main.c index 408043a20a76..481fecb3d6bd 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" " */