head     1.4;
branch   ;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


1.4
date     92.04.20.16.39.12;  author romig;  state Exp;
branches ;
next     1.3;

1.3
date     92.04.17.11.25.46;  author romig;  state Exp;
branches ;
next     1.2;

1.2
date     92.04.17.08.55.35;  author romig;  state Exp;
branches ;
next     1.1;

1.1
date     92.04.13.16.34.11;  author romig;  state Exp;
branches ;
next     ;


desc
@Script that creates the filesystem graphs from the *.host-raw files.
@


1.4
log
@Oops, need to create postscript versions also.
@
text
@#! /bin/csh -f -b

foreach HOST (*.host-raw)
    set NAME = `basename $HOST .host-raw`
    set TITLE = `echo $NAME | tr '+_' ':/'`

    awk '$4 == 0 { print $6, $5 }' < $HOST | sort -n > $NAME.level0.size-date
    awk '$4 == 2 { print $6, $5 }' < $HOST | sort -n > $NAME.level2.size-date
    awk '$4 == 9 { print $6, $5 }' < $HOST | sort -n > $NAME.level9.size-date

    
    ../mkgr -P -D -z 							\
	"Backup sizes by date for $TITLE" "Date" "Size (kilobytes)" 	\
	$NAME.level0.size-date	"level 0"	impulses	1	\
	$NAME.level2.size-date	"level 2"	imp		2	\
	$NAME.level9.size-date	"level 9"	imp		8	\
	>! $NAME.size-date.gp

    ../mkgr -p $NAME.size-date.ps -D -z 				\
	"Backup sizes by date for $TITLE" "Date" "Size (kilobytes)" 	\
	$NAME.level0.size-date	"level 0"	impulses	1	\
	$NAME.level2.size-date	"level 2"	imp		2	\
	$NAME.level9.size-date	"level 9"	imp		8	\
	| gnuplot
end
@


1.3
log
@Changes for mkgr
@
text
@a5 1
    echo $TITLE
d12 2
a13 1
    ../mkgr -P -D -z "Backup sizes by date for $TITLE" "Date" "Size (kilobytes)" \
d18 7
@


1.2
log
@misc fixes
@
text
@d13 5
a17 4
    ../make-graph3-date $NAME.size-date "Backup sizes by date for $TITLE" "Date" \
		"Size (kilobytes)" \
		$NAME.level0.size-date $NAME.level2.size-date \
		$NAME.level9.size-date 
@


1.1
log
@Initial revision
@
text
@d13 1
a13 1
    ../make-graph3 $NAME.size-date "Backup sizes by date for $TITLE" "Date" \
@
