]> git.wh0rd.org - dump.git/blobdiff - dump/optr.c
Compatibility between dumps made on little endian machines vs. big endian machines...
[dump.git] / dump / optr.c
index fdda1c4e594ef67297377982731e2ec7eeff4cec..de1d6f6fde171a16b6d19494c8f5ee1b3b4d6955 100644 (file)
@@ -40,7 +40,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: optr.c,v 1.9 2000/01/26 11:38:08 stelian Exp $";
+       "$Id: optr.c,v 1.10 2000/02/10 09:42:32 stelian Exp $";
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -328,6 +328,8 @@ timeest(void)
                tschedule = tnow + 300;
                if (blockswritten < 500)
                        return;
+               if (blockswritten > tapesize)
+                       tapesize = blockswritten;
                deltat = tstart_writing - tnow +
                        (1.0 * (tnow - tstart_writing))
                        / blockswritten * tapesize;