Attached is a minor patch which changes the stats printed on tape labels
to reflect what is actually on the tape rather than what got dumped.
This makes all fields accurate during an amflush run, where Total Size
used to be reported as 0, as well as after an amdump run that hit EOT.
As such, "Filesystems Dumped" is now "Filesystems Taped".

If I broke anything, please let me know.  And if it's right, please let me
know too, as it's my first official patch.  :)

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University
--- server-src/reporter.c~	Fri Feb  2 14:07:57 2001
+++ server-src/reporter.c	Tue May 29 10:39:54 2001
@@ -865,7 +865,7 @@
 
     if (postscript) {
       fprintf(postscript, "(Total Size:        %6.1f MB) DrawStat\n",
-	      mb(stats[2].outsize));
+	      mb(stats[2].tapesize));
       fprintf(postscript, "(Tape Used (%%)       ");
       divzero(postscript, pct(stats[2].tapesize+marksize*stats[2].tapedisks),
 	      tapesize);
@@ -873,8 +873,8 @@
       fprintf(postscript, "(Compression Ratio:  ");
       divzero(postscript, pct(stats[2].coutsize),stats[2].corigsize);
       fprintf(postscript," %%) DrawStat\n");
-      fprintf(postscript,"(Filesystems Dumped: %4d) DrawStat\n",
-	      stats[2].dumpdisks);
+      fprintf(postscript,"(Filesystems Taped: %4d) DrawStat\n",
+	      stats[2].tapedisks);
     }
 }
 

Reply via email to