--- stop-bootchart.orig 2008-03-20 11:31:15.000000000 +0100 +++ stop-bootchart 2008-03-20 11:33:12.000000000 +0100 @@ -58,20 +58,18 @@ rm -rf $JAIL } -# Process the tarball and create a png chart +# Process the tarball and create a svgz chart create_chart() { base="$(hostname)-$(lsb_release -sc)-$(date +%Y%m%d)" count=1 - while [ -e "$CHARTS/$base-$count.png" ]; do + while [ -e "$CHARTS/$base-$count.svgz" ]; do count=$(( $count + 1 )) done /usr/bin/java -jar /usr/share/bootchart/bootchart.jar \ - -o $CHARTS -f svg > /dev/null - rsvg $CHARTS/bootchart.svgz $CHARTS/$base-$count.png - rm -f $CHARTS/bootchart.svgz - rm -f $TARBALL + -o $CHARTS -f svg $TARBALL > /dev/null && rm -f $TARBALL + mv $CHARTS/bootchart.svgz $CHARTS/$base-$count.svgz } upload_chart() @@ -83,7 +81,7 @@ ;; esac done - wget -O /dev/null -q --post-file $CHARTS/$base-$count.png http://bootchart.err.no/upload/$(lsb_release -si)/$(lsb_release -sc)/$(uname -r)/$(uname -m)/$boottype + wget -O /dev/null -q --post-file $CHARTS/$base-$count.svgz http://bootchart.err.no/upload/$(lsb_release -si)/$(lsb_release -sc)/$(uname -r)/$(uname -m)/$boottype } case "$1" in