--- experimental/reports/queuegraphing/watch.pl 2001/10/21 18:57:40 1.2 +++ experimental/reports/queuegraphing/watch.pl 2001/10/21 19:01:16 1.3 @@ -101,11 +101,13 @@ while(1) { } my($size) = $xmlhash{"packet.queue.attributes.queue$i"}; my($cmd); + # see if the queue has been removed if($size eq "[deleted]") { - $cmd = "rm -f $hash\_$i.rrd $hash*.png"; + $cmd = "rm -f $hash\_$i.rrd"; + # are there any other rrd's left? if not, cleanup! my($rrdcount) = `ls | grep $hash\_\\*.rrd | wc -l`; if($rrdcount == 0) { - $cmd = $cmd . " && rm -f $hash.def"; + $cmd = $cmd . " && rm -f $hash.def $hash*.png"; } } else {