else if( $2=="finished-cmd") cmd_fin++;
else if( $2=="started") forked++;
else if( $2=="QUITTING") do_quit();
else if( $2=="finished-cmd") cmd_fin++;
else if( $2=="started") forked++;
else if( $2=="QUITTING") do_quit();
else if( $2=="tape" && $3=="size") ; #eat this line
else if( $2=="dump" && $3=="failed") ; #eat this line
else if( $2=="taper" && $3=="failed") ; #eat this line
else if( $2=="tape" && $3=="size") ; #eat this line
else if( $2=="dump" && $3=="failed") ; #eat this line
else if( $2=="taper" && $3=="failed") ; #eat this line
# $11 = "writing"/"idle"# $12 = "idle-dumpers:"
# $13 = #idle # $14 = "qlen" # $15 = "tapeq:"
# $16 = #waiting # $17 = "runq:" # $18 = #not started
# $11 = "writing"/"idle"# $12 = "idle-dumpers:"
# $13 = #idle # $14 = "qlen" # $15 = "tapeq:"
# $16 = #waiting # $17 = "runq:" # $18 = #not started
if( unused != unused_old)
printf plot_fmt, time, unused_old, time,unused >>"bandw_free";
unused_old = unused;
if( unused != unused_old)
printf plot_fmt, time, unused_old, time,unused >>"bandw_free";
unused_old = unused;
else { # something bad from dumper
if ($7=="FAILED") { failed++;}
else if ($7=="TRY-AGAIN"){ try++;}
else { # something bad from dumper
if ($7=="FAILED") { failed++;}
else if ($7=="TRY-AGAIN"){ try++;}
else if ($7=="RQ-MORE-DISK") ; # FIXME: ignore for now
else if ($7=="NO-ROOM")
print fil, pr_time($4),"#" ++no_room, $0;
else if ($7=="RQ-MORE-DISK") ; # FIXME: ignore for now
else if ($7=="NO-ROOM")
print fil, pr_time($4),"#" ++no_room, $0;
printf "set yrange[0:%d]\n",maxy >"title";
if( maxtime < tim && extend !=0) {
printf "set xrange[0:%d]\n", tim+30 >>"title";
printf "set yrange[0:%d]\n",maxy >"title";
if( maxtime < tim && extend !=0) {
printf "set xrange[0:%d]\n", tim+30 >>"title";
- printf "set key %d, %d\n", key_col, lab >>"title";
+ printf "set key %d, %d\n", key_col, lab+4 >>"title";
printf "set label %d \"Amanda Dump %s\" at 10,%d\n", ++label,fil,
lab >"title";
lab -= label_shift;
printf "set label %d \"Amanda Dump %s\" at 10,%d\n", ++label,fil,
lab >"title";
lab -= label_shift;
if(paper==1) printf "set term postscript landscape color \"Times-Roman\" 10\n" >>"title";
else printf "set term postscript portrait color \"Times-Roman\" 10\n" >>"title";
}
if(paper==1) printf "set term postscript landscape color \"Times-Roman\" 10\n" >>"title";
else printf "set term postscript portrait color \"Times-Roman\" 10\n" >>"title";
}
}
printf "set ylabel """";" >>"title"; # make sure there is no ylabel
fmt= "set label %d \"%s\" at "third_col", %d\n";
}
printf "set ylabel """";" >>"title"; # make sure there is no ylabel
fmt= "set label %d \"%s\" at "third_col", %d\n";